activesupport冲突ios开发

activesupport冲突ios开发

本文介绍了cocoapods activesupport冲突ios开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在cocoapods项目中报告此问题,但被指示在此处发布.我最近进行了一个工作的项目,但在使以前的顾问程序设置在我的本地工作站上运行时遇到困难.我能够成功安装cocoapods gem,但是,当我运行pod install时,它会炸毁....

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

我目前将rbenv与ruby 2.0.0以及最新版本的xcode,git等一起使用.我所有的ruby和rails项目都可以正常工作,但是对于ios来说我有点菜鸟.

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.

有什么想法吗?指针?

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

推荐答案

在上面的@jimjeffers评论中,我不得不切换到已安装的Ruby 2.0的其他版本,在这种情况下为"2.0.0-p195"和run rbenv local 2.0.0-p195 =>之后,请按照 http://cocoapods.org/运行的步骤操作:

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

完成后,我就可以启动ios项目.

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

这篇关于cocoapods activesupport冲突ios开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 18:01