美文网首页
MacOS控制台pod init错误日记

MacOS控制台pod init错误日记

作者: 小虫1234 | 来源:发表于2017-03-11 16:01 被阅读1311次

    昨天在做一个简单的项目,和平时一样打开控制台设置cocoapods,然而我在pod init这一步骤碰上了如下错误提示:

    ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――### Command```/usr/local/bin/pod init```### Report* What did you do?* What did you expect to happen?* What happened instead?### Stack```  CocoaPods : 1.1.1        Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]    RubyGems : 2.0.14.1        Host : Mac OS X 10.12.2 (16C67)      Xcode : 8.2.1 (8C1002)        Git : git version 2.10.1 (Apple Git-78)Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/libRepositories : master - https://github.com/CocoaPods/Specs.git @ 59f6c825663ae44240315315cdee6c7916d4e9c8```### Plugins```cocoapods-deintegrate : 1.0.1cocoapods-plugins    : 1.0.0cocoapods-search      : 1.0.0cocoapods-stats      : 1.0.0cocoapods-trunk      : 1.1.1cocoapods-try        : 1.1.0```### Error```LoadError - cannot load such file -- nanaimo/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/plist.rb:23:in `read_from_path'/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:200:in `initialize_from_file'/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:102:in `open'/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command/init.rb:41:in `validate!'/Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:333:in `run'/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in `run'/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in `'/usr/local/bin/pod:23:in `load'/usr/local/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=cannot+load+such+file+--+nanaimo&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!

    Looking for related issues on cocoapods/cocoapods...

    - LoadError - cannot load such file -- nanaimo

    https://github.com/CocoaPods/CocoaPods/issues/6214 [open] [17 comments]

    3 days ago

    - help!  cannot load such file -- nanaimo

    https://github.com/CocoaPods/CocoaPods/issues/6312 [closed] [4 comments]

    4 days ago

    - LoadError - cannot load such file -- nanaimo

    https://github.com/CocoaPods/CocoaPods/issues/6281 [closed] [2 comments]

    2 weeks ago

    and 5 more at:

    https://github.com/cocoapods/cocoapods/search?q=cannot%20load%20such%20file%20--%20nanaimo&type=Issues&utf8=✓

    大致出错在nanaimo这里,解决办法很简单:

    DideMacBook-Pro:AWSLoginTest diwang$ sudo gem uninstall nanaimo

    Select gem to uninstall:

    1. nanaimo-0.2.2

    2. nanaimo-0.2.3

    3. All versions

    > 1

    Successfully uninstalled nanaimo-0.2.2

    如上,卸载0.2.2版本的nanaimo即可.

    相关文章

      网友评论

          本文标题:MacOS控制台pod init错误日记

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