New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pod install fails while trying to call present? on a nil when using activesupport 7.1.0 #12089
Comments
I see the fix is on the main branch, could you kindly release as soon as possible? This has a huge impact on a large number of mobile developers. |
There are many broken iOS build pipelines after ActiveSupport 7.1.0 release. |
@dnkoutso, would you be able to make a patch release with the |
@shareefhadid there's a fix for #12081 but not for this one as far as I can see. |
add
into the @nikolaykasyanov in your case, into |
Require active_support/core_ext in cocoapods.rb to fix #12089
This is caused by cocoapods 1.13.0 not yet adapting to the recent active_support 7.1.Since active_support 7.1 has modified its api, and loads the minimum dependencies by default. It is broken in small pieces so that only the desired extensions can be loaded. Users should cherry-pick the extensions they want. Just add the following two lines require "active_support"
require "active_support/core_ext" into cocoapods gem file
before line 7
|
This works like charm |
This was really helpful, Thank you. |
Conforme [comentado nessa issue](CocoaPods/CocoaPods#12089 (comment)), o ActiveSupport 7.1 mudou sua API e agora carrega apenas as dependências mínimas. Foi preciso adicionar o `require "active_support"` e o `require "active_support/core_ext"` para o "extractor" funcionar.
Report
What did you do?
Used CocoaPods master in my Gemfile:
Then I ran
bundle update cocoapods
to get the changes from #12082, which bumped both the cocoapods (to 2164788) and activesupport (to 7.1.0) gems.Then I ran
pod install
.What did you expect to happen?
pod install
to succeed.What happened instead?
The affected line:
CocoaPods/lib/cocoapods/installer/podfile_validator.rb
Line 100 in 2164788
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
I can't share it at this time, sorry, although I can tell that a dependency with
:source =>
and:tag =>
is the one CocoaPods stumbles at.The text was updated successfully, but these errors were encountered: