cocoapods ruby2.7.0 导致的警告
ruby升级到2.7.0后重装了cocoapods 执行pod search会提示如下警告:
/Users/garvin/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/cdn_source.rb:337: warning: URI.escape is obsolete
/Users/garvin/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/cdn_source.rb:337: warning: URI.escape is obsolete
打印好多好多行这里只贴了两行,看着让人抓狂,强迫症受不了啊~
在github上有人说出了警告原因
Ruby 2.7 has introduced a few deprecations which result in quite a lot of warnings being logged when running CocoaPods. These fall into two broad categories:
Usage of URI.escape, which is deprecated and should be replaced with CGI.escape
Implicit conversion of a hash to keyword arguments, which should be replaced with an explicit conversion using the double splat operator (**)
There's really quite a lot of these warnings, so it would be nice if we could fix this for Ruby 2.7 users.
大概意思是ruby升级到2.7弃用了一些方法导致的。
网友评论