pod安装时的LoadError

时间:2014-01-23 13:40:59

标签: ios objective-c cocoapods

我运行pod install,但错误LoadError - cannot load such file -- xcodeproj/prebuilt/x86_64-darwin12.5.0-2.0.0/xcodeproj_ext

我的环境:

   CocoaPods : 0.29.0
        Ruby : ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.5.0]
    RubyGems : 2.0.3
        Host : Mac OS X 10.9.1 (13B42)
       Xcode : 4.6.3 (4H1503)
Ruby lib dir : /Users/konstantinmakarychev/.rbenv/versions/2.0.0-p247/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 299f20b0909a26e46ffa381dcfc5b7fdd7dc2583

有什么想法吗?

3 个答案:

答案 0 :(得分:5)

我自己解决了我的问题:

:~$ gem update
:~$ gem pristine --all
:~$ gem install cocoapods
:~$ pod install

答案 1 :(得分:2)

检查Cocoapods Troubleshooting。你应该这样做:

$ gem uninstall cocoapods
$ gem install cocoapods

答案 2 :(得分:1)

您应该安装XCode命令行工具。