OS X升级到10.10后使用CocoaPods出现问题的解决办法
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>' from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:3:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj.rb:30:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods.rb:2:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/bin/pod:32:in `<top (required)>' from /usr/bin/pod:23:in `load' from /usr/bin/pod:23:in `<main>'
1、进入Xcode 6的Preferences菜单,点击Locations选项,Command Line Tools 版本选择 Xcode 6.0
2、执行以下命令卸载CocoaPods
$ sudo gem uninstall cocoapods
3、执行以下命令安装xcodeproj
$ sudo gem install xcodeproj
4、执行以下命令安装CocoaPods
$ sudo gem install cocoapods
5、执行以下命令测试CocoaPods是否安装成功
$ pod --version
相关推荐
baobeiliyue 2020-06-06
starX 2019-12-15
starX 2015-06-15
sgliquangang 2015-10-22
starX 2019-07-01
daiyelang 2019-06-26
pwf00 2019-06-25
lijuan0 2019-06-25
axuair 2019-06-21
lijuan0 2019-06-20
daiyelang 2019-06-20
KaSuperMen 2017-03-29
sgliquangang 2016-10-18
daiyelang 2016-08-13
KaSuperMen 2016-08-02
starX 2016-08-01
pwf00 2016-07-21
starX 2016-03-29
KaSuperMen 2015-11-23