cocoapods activesupport冲突ios开发
我尝试在cocoapods项目上报告这个问题,但是被指示在这里发布。 我最近接受了一个项目,我工作,我无法获得以前的顾问设置在我的本地工作站上运行。 我能够成功安装cocoapodsgem,但是,当我运行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 `'
我目前使用rbenv与ruby 2.0.0以及最新版本的xcode,git等。我所有的ruby和rails项目都运行正常,但我对ios有点不高兴。
思考? 指针?
https://github.com/CocoaPods/CocoaPods/issues/1775 https://github.com/CocoaPods/CocoaPods/issues/1762
根据上面的@jimjeffers评论,我不得不切换到安装了不同版本的Ruby 2.0,在这种情况下为“2.0.0-p195”并按照http:// cocoapods上的步骤run rbenv local 2.0.0-p195
=> .org / running:
gem install cocoapods pod install
一旦完成,我就能启动ios项目。