美文网首页
pod install 相关问题及解决办法

pod install 相关问题及解决办法

作者: 白貂 | 来源:发表于2018-02-07 17:53 被阅读0次

    参考:http://blog.csdn.net/lidngke/article/details/50817013

    ―――――――――― MARKDOWN TEMPLATE ――――――――――

    ### Report

    * What did you do?

    * What did you expect to happen?

    * What happened instead?

    ### Stack

    ```

    CocoaPods : 0.29.0

    Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

    RubyGems : 2.1.11

    Host : Mac OS X 10.9.2 (13C64)

    Xcode : 5.1 (5B130a)

    Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib

    Repositories : master - https://github.com/CocoaPods/Specs.git @ bd6736d07b16c98ab7a1dae04697cae002f25a9b

    ```

    ### Podfile

    ```ruby

    platform :ios,'8.0'

    pod 'MBProgressHUD', '~> 0.8'

    ```

    ### Error

    ```

    Psych::SyntaxError - (/Users/MAXJ/.cocoapods/repos/master/CocoaPods-version.yml): mapping values are not allowed in this context at line 3 column 4

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse'

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in `parse'

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in `load'

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in `block in load_file'

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in `open'

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:299:in `load_file'

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:261:in `version_information'

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:222:in `repo_compatible?'

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:281:in `master_repo_functional?'

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:39:in `parse'

    /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:179:in `parse'

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:38:in `parse'

    /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:211:in `run'

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'

    /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `'

    /usr/bin/pod:23:in `load'

    /usr/bin/pod:23:in `'

    ```

    ―――――――――― TEMPLATE END ――――――――――

    [!] Oh no, an error occurred.

    Search for existing github issues similar to yours:

    https://github.com/CocoaPods/CocoaPods/search?q=%28%2FUsers%2FMAXJ%2F.cocoapods%2Frepos%2Fmaster%2FCocoaPods-version.yml%29%3A+mapping+values+are+not+allowed+in+this+context+at+line+3+column+4&type=Issues

    If none exists, create a ticket, with the template displayed above, on:

    https://github.com/CocoaPods/CocoaPods/issues/new

    Don't forget to anonymize any private data!

    解决方案:

    $ sudo rm -rf ~/.cocoapods/repos/master

    $ pod setup

    相关文章

      网友评论

          本文标题:pod install 相关问题及解决办法

          本文链接:https://www.haomeiwen.com/subject/tbeazxtx.html