我尝试在cocoapods项目中报告此问题,但是我被指示在此发布。我最近参与了一个我工作的项目,我无法获得以前的顾问设置,以便在我的本地工作站上运行。我能够成功安装cocoapods宝石,但是,当我运行pod install
它会爆炸....
specification.rb:1990:in `raise_if_conflicts': Unable to activate xcodeproj-0.14.1, because activesupport-4.0.0.rc1 conflicts with activesupport (~> 3.0) (Gem::LoadError)
from /Users/chrishough/.rbenv/versions/2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1163:in `activate'
from /Users/chrishough/.rbenv/versions/2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1199:in `block in activate_dependencies'
from /Users/chrishough/.rbenv/versions/2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1185:in `each'
from /Users/chrishough/.rbenv/versions/2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1185:in `activate_dependencies'
from /Users/chrishough/.rbenv/versions/2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1167:in `activate'
from /Users/chrishough/.rbenv/versions/2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:in `gem'
from /Users/chrishough/.rbenv/versions/2.0.0-p0/bin/pod:22:in `<main>'
我目前使用rbenv和ruby 2.0.0以及最新版本的xcode,git等。我所有的ruby和rails项目都运行正常,但我对ios有点不高兴。
思考?指针?
https://github.com/CocoaPods/CocoaPods/issues/1775 https://github.com/CocoaPods/CocoaPods/issues/1762
答案 0 :(得分:2)
根据上面的@jimjeffers评论,我不得不切换到安装了不同版本的Ruby 2.0,在本例中为“2.0.0-p195”和run rbenv local 2.0.0-p195
=&gt;按照http://cocoapods.org/运行:
gem install cocoapods
pod install
一旦完成,我就能启动ios项目。