[英]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.我试图解决这个问题的步骤。
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.