【发布时间】:2014-01-14 11:21:17
【问题描述】:
我已经在这个问题上停留了几个小时,但我找不到解决方案。我正在运行 Mavericks 并安装了 Xcode 5.0.2(随命令行工具一起提供)。
我的环境:
- 将 RVM 与 ruby 版本 1.9.3p484 一起使用
- Xcode 5.0.2
- Mac OS 10.9.1
- 宝石 2.2.0
- 捆绑器版本 1.3.5
Sudo gem install 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 xcode rubygems xcode5 cocoapods