/Users/~/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/...

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弃用了一些方法导致的。

出处

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。