/Users/mike/.rvm/gems/ruby-2.7.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/cdn_source.rb:337: warning: URI.escape is obsolete
Ruby 2.7.0 shows a warning when invoking URI.escape or its alias, URI.encode. It might look like a fresh deprecation, but the fact is, these methods have been marked as obsolete for… over 10 years now!
URI.escape is obsolete. Percent-encoding your query string Have you encountered one of those warnings in your Ruby 2.7.0 project? Find out how to fix it! Ruby 2.7.0 shows a warning when invoking URI.escape or its alias, URI.encode.
URI.escape is obsolete. Percent-encoding your query string URI.escape is obsolete. Percent-encoding your query string Have you encountered one of those warnings in your Ruby 2.7.0 project? Find out how to fix it! Ruby 2.7.0 shows a warning when invoking URI.escape or its alias, URI.encode.
Looks like the upcoming CocoaPods 1.10.0 will remove the deprecation warnings. See https://github.com/CocoaPods/CocoaPods/issues/9491. In the mean time, I wouldn't worry about it. These are just warnings and shouldn't currently cause any issues.
If you really want to remove the warnings you can disable all Ruby warnings using the RUBYOPT
environment variable like this:
export RUBYOPT='-W0'
Although I wouldn't recommend it as you risk missing something important in the future.
upgrading ruby to 2.7.2 and reinstall cocoapods 1.10.0 can fix
brew upgrade ruby
gem install cocoapods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With