我收到一些警告信息。其中大部分是在更新相关的Pods后消失的。但这3种警告仍然存在。我没有AppAuth吊舱,但是有Firebase/Auth和Firebase/Core。我该怎么做才能摆脱他们?
谢谢,
下面是Podfile。
=========================
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
target ‘test’ do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# use_modular_headers!
# Pods for test
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'GoogleSignIn'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Performance'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
target ‘testTests' do
inherit! :search_paths
# Pods for testing
end
target ‘testUITests' do
inherit! :search_paths
# Pods for testing
end
end


发布于 2020-12-29 21:53:31
AppAuth是一个专为iOS 7设计的及以上的GoogleSignIn的依赖性。
通过删除Podfile中的最小post_install版本7,将Podfile中的iOS脚本中的版本更改为10将引发警告。
与其删除它,还可以通过将最低版本更改为9来消除警告和Xcode 12警告,因为它不支持iOS 8:
post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end感谢https://stackoverflow.com/a/58367269/556617的post_install脚本。
发布于 2020-12-29 18:03:53
正如所示的Xcode所示,因此不推荐使用此新方法而不是openUrl。
open func open(_ url: URL, options: [String : Any] = [:],
completionHandler completion: (@escaping (Bool) -> Swift.Void)? = nil)如果您认识到两个新的参数具有默认值:一个空字典和一个可选的闭包,即为零。这就是为什么您可以很容易地用作openUrl的原因。
https://stackoverflow.com/questions/65496450
复制相似问题