zoukankan      html  css  js  c++  java
  • CocoaPods使用中的invalid byte sequence in US-ASCII错误

    原文地址:http://www.colabug.com/thread-1071353-1-1.html

    sudo gem install cocoapods成功后,pod search AFNetworking出现以下问题

    �€•�€•�€• MARKDOWN TEMPLATE �€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•

    ### Command

    ```
    /usr/bin/pod search AFNetworking
    ```

    ### Report

    * What did you do?

    * What did you expect to happen?

    * What happened instead?


    ### Stack

    ```
       CocoaPods : 0.37.1
            Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
        RubyGems : 2.0.14
            Host : Mac OS X 10.9.5 (13F34)
           Xcode : 6.1 (6A1052d)
             Git : git version 1.9.3 (Apple Git-50)
    Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
    Repositories : master - https://github.com/CocoaPods/Specs.git @ ae94687824173a70608bafaa25613f041d2b1f73
    ```

    ### Plugins

    ```
    cocoapods-plugins : 0.4.2
    cocoapods-trunk   : 0.6.0
    cocoapods-try     : 0.4.4
    ```

    ### Error

    ```
    ArgumentError - invalid byte sequence in GB2312
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/source.rb:241:in `==='
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/source.rb:241:in `each'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/source.rb:241:in `grep'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/source.rb:241:in `search_by_name'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/source/aggregate.rb:106:in `block in search_by_name'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/source/aggregate.rb:105:in `each'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.37.1/lib/cocoapods-core/source/aggregate.rb:105:in `search_by_name'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/sources_manager.rb:135:in `search_by_name'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/command/search.rb:79:in `local_search'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/command/search.rb:57:in `run'
    /Library/Ruby/Gems/2.0.0/gems/claide-0.8.1/lib/claide/command.rb:312:in `run'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/lib/cocoapods/command.rb:46:in `run'
    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.37.1/bin/pod:44:in `<top (required)>'
    /usr/bin/pod:23:in `load'
    /usr/bin/pod:23:in `<main>'
    ```


    �€•�€•�€• TEMPLATE END �€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•�€•

    [!] Oh no, an error occurred.

    Search for existing GitHub issues similar to yours:
    https://github.com/CocoaPods/CocoaPods/search?q=invalid+byte+sequence+in+GB2312&type=Issues

    If none exists, create a ticket, with the template displayed above, on:
    https://github.com/CocoaPods/CocoaPods/issues/new

    Be sure to first read the contributing guide for details on how to properly submit a ticket:
    https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

    Don't forget to anonymize any private data!

    心情无比酸爽,解决方法:

    $ export LANG=en_US.UTF-8
    $ export LANGUAGE=en_US.UTF-8
    $ export LC_ALL=en_US.UTF-8

     
  • 相关阅读:
    Python第一周作业
    turtle库的学习笔记
    绘制五角星
    绘制六角形
    绘制同心圆
    绘制叠加三角形
    Slash And Black Slash/正斜杠和反斜杠
    OpenCv中avi视频的读取问题,以及内部格式要求
    OpenCv和matlab对图像的读取
    个人项目进度
  • 原文地址:https://www.cnblogs.com/xmaolv/p/4489775.html
Copyright © 2011-2022 走看看