我正在尝试让Travis CI建立一个多语言项目。 (这PR。)我遇到的问题是pod install
步骤保持了segfaulting。
/Users/travis/.rvm/gems/ruby-2.0.0-p643/gems/json-1.8.3/lib/json/ext/parser.bundle: [BUG] Segmentation fault
ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
如果我按照common Travis build problems指南中的建议使用Ruby 1.9.3(使用language: ruby
并在rvm: 1.9.3
中设置.travis.yml
),那么当我出现时会出现错误尝试安装CocoaPods。
++gem install cocoapods -v 0.32.1
...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
/Users/travis/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -rubygems /Users/travis/.rvm/gems/ruby-1.9.3-p551/gems/rake-10.4.2/bin/rake RUBYARCHDIR=/Users/travis/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-15/1.9.1/xcodeproj-0.16.1 RUBYLIBDIR=/Users/travis/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-15/1.9.1/xcodeproj-0.16.1
/Users/travis/.rvm/rubies/ruby-1.9.3-p551/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 ***
答案 0 :(得分:0)
通过设置rvm: 2.2.3
将Ruby的版本更改为2.2.3,为我解决了这个问题。