简体   繁体   English

Bundler 找不到 gem “activesupport” 的兼容版本:当我尝试更新 cocoapods 版本时

[英]Bundler could not find compatible versions for gem “activesupport”: When i try to update cocoapods version

Bundler could not find compatible versions for gem "activesupport": Bundler 找不到 gem "activesupport" 的兼容版本:

  In Gemfile:
    cocoapods (~> 1.9.3) was resolved to 1.9.3, which depends on
      activesupport (>= 4.0.2, < 5)

    ion_develop_rails (~> 7.4) was resolved to 7.6.0, which depends on
      activesupport (>= 5.0)

I am getting above error when i try to run bundle update.当我尝试运行捆绑更新时出现上述错误。 Earlier to this the cocoapods version was 1.0.1 and i have updated it to 1.9.3 and tried to 'bundle update' and getting this error.在此之前,cocoapods 版本是 1.0.1,我已将其更新到 1.9.3 并尝试“捆绑更新”并收到此错误。

The steps i tried to fix this.我试图解决这个问题的步骤。

  1. I deleted all the cocoapods information in Gemfile.lock and bundle install but did not get any success with that.我删除了 Gemfile.lock 和 bundle install 中的所有 cocoapods 信息,但没有成功。
  2. I also tried to update the rails gem and then bundle update but no luck.我还尝试更新 rails gem,然后捆绑更新,但没有运气。

Please help me with this.请帮我解决一下这个。 Thanks in advance.提前致谢。

I just found a way to overcome the above issue.我刚刚找到了解决上述问题的方法。 Instead of adding cocoapods in Gemfile, if i add it in the gemspec as the dependency with what version i want will resolve the issue.而不是在 Gemfile 中添加 cocoapods ,如果我在 gemspec 中添加它作为我想要的版本的依赖项将解决问题。 I have added the cocoapods dependency in gemspec like this spec.add_dependency 'cocoapods', '~> 1.9'我在 gemspec 中添加了 cocoapods 依赖项,比如这个 spec.add_dependency 'cocoapods', '~> 1.9'

@sonic. @索尼克。 Thanks for your inputs.感谢您的投入。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Bundler 找不到 gem “activesupport” 的兼容版本 - Bundler could not find compatible versions for gem “activesupport” Bundler找不到gem“activesupport”的兼容版本: - Bundler could not find compatible versions for gem “activesupport”: 特色错误:Bundler 找不到 gem &quot;activesupport&quot; 的兼容版本: - Featured error : Bundler could not find compatible versions for gem "activesupport": Bundler找不到gem“activesupport”和“railties”的兼容版本 - Bundler could not find compatible versions for gem “activesupport” and “railties” Bundler找不到与gem“ activesupport”兼容的版本:对于shopify_app - Bundler could not find compatible versions for gem “activesupport”: for shopify_app 捆绑更新时,Bundler找不到gem“railties”的兼容版本 - Bundler could not find compatible versions for gem “railties” when bundle update 如何在项目中更新Rails的版本? Bundler找不到宝石“ activemodel”的兼容版本 - How do I update the version of Rails in my project? Bundler could not find compatible versions for gem “activemodel” Bundler找不到宝石“ bundler”的兼容版本 - Bundler could not find compatible versions for gem “bundler” Bundler 找不到 gem“bundler”的兼容版本: - Bundler could not find compatible versions for gem "bundler": Bundler找不到宝石“ rails”的兼容版本,但已安装版本 - Bundler could not find compatible versions for gem “rails”, but version is installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM