cocoapods activesupport conflicts ios development

♀尐吖头ヾ 提交于 2019-12-12 13:16:50

问题


I tried reporting this issue on the cocoapods project but was directed to post here. I recently took on a project where I work and I am having trouble getting what the previous consultant setup to function on my local workstation. I was able to successfully install the cocoapods gem, however, when I run pod install it blows up....

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>'

I currently use rbenv with ruby 2.0.0 and the latest editions of xcode, git, etc. All of my ruby and rails projects are working fine, but I am a bit of a noob to ios.

Thoughts? Pointers?

https://github.com/CocoaPods/CocoaPods/issues/1775 https://github.com/CocoaPods/CocoaPods/issues/1762


回答1:


Per @jimjeffers comment above, I had to switch to a different version of Ruby 2.0 installed, in this case "2.0.0-p195" and run rbenv local 2.0.0-p195 => after follow the steps on http://cocoapods.org/ running:

gem install cocoapods
pod install

and once completed I was able to startup the ios project.



来源:https://stackoverflow.com/questions/21465696/cocoapods-activesupport-conflicts-ios-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!