我的环境:
>使用RVM与ruby版本1.9.3p484
> Xcode 5.0.2
> Mac OS 10.9.1
>宝石2.2.0
> Bundler版本1.3.5
Sudo gem安装cocoapods输出
kyles-mbp-2:fresh-driver-ios kylechronis$sudo gem install cocoapods Building native extensions. This Could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. /Users/kylechronis/.rvm/rubIEs/ruby-1.9.3-p484/bin/ruby -rubygems /Users/kylechronis/.rvm/rubIEs/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/rake- 0.9.2.2/bin/rake RUBYARCHDIR=/Users/kylechronis/.rvm/rubIEs/ruby-1.9.3- p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-13/1.9.1/xcodeproj-0.14.1 RUBYliBDIR=/Users/kylechronis/.rvm/rubIEs/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-13/1.9.1/xcodeproj-0.14.1 /Users/kylechronis/.rvm/rubIEs/ruby-1.9.3-p484/bin/ruby extconf.rb checking for -std=c99 option to compiler... yes checking for CoreFoundation... no checking for main() in -lCoreFoundation... no CoreFoundation is needed to build the Xcodeproj C extension. *** extconf.rb Failed *** Could not create Makefile due to some reason,probably lack of necessary librarIEs and/or headers. Check the mkmf.log file for more details. You may need configuration options.
这是CoreFoundation无法找到的问题吗?或者使用不同版本的Ruby?任何帮助或输入将不胜感激.
解决方法 安装新的Ruby版本帮助了我.跟着这些步骤
rvm reinstall ruby-2.0.0-p247 --with-gcc=clang --verify-downloads 1gem install xcodeprojgem install cocoapods
我在old Github issue年找到了这个答案.
总结以上是内存溢出为你收集整理的ruby – CocoaPods无法使用Xcode 5.0.2进行安装全部内容,希望文章能够帮你解决ruby – CocoaPods无法使用Xcode 5.0.2进行安装所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)