Cocoapods iOS - [!]谷歌已被弃用 - 如何摆脱警告? [英] Cocoapods iOS - [!] Google has been deprecated - How to get rid of the warning?
本文介绍了Cocoapods iOS - [!]谷歌已被弃用 - 如何摆脱警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做的步骤:
-
pod repo remove master
pod setup
pod update --verbose
(只是为了检查进度,特别是在更新Google SDK时,花了这么长时间才完成)。
pod update --verbose
(Just to check the progress especially when updating the Google SDKs, took so long to finish).
在那里,我收到了警告。在我的日志中,Google SDK已成功更新:
And there, I got the warning. In my logs, Google SDKs were updated successfully:
- >安装Google 3.1.0(原为3.0.3)
-> Installing Google 3.1.0 (was 3.0.3)
- >安装GoogleMaps 2.3.0(为2.2.0)
-> Installing GoogleMaps 2.3.0 (was 2.2.0)
Podfile :
target 'MyProj' do
...
pod 'Google/Analytics'
pod 'GoogleMaps'
...
target 'MyProjTests' do
inherit! :search_paths
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
end
我想知道如何摆脱这个警告。
I would like to know how to get rid of this warning.
推荐答案
将 pod'Google / Analytics'
更改为 pod'GoogleAnalytics'
删除斜杠。
这篇关于Cocoapods iOS - [!]谷歌已被弃用 - 如何摆脱警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文