首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AppAuth的弃用警告

AppAuth的弃用警告
EN

Stack Overflow用户
提问于 2020-12-29 17:47:22
回答 2查看 438关注 0票数 2

我收到一些警告信息。其中大部分是在更新相关的Pods后消失的。但这3种警告仍然存在。我没有AppAuth吊舱,但是有Firebase/Auth和Firebase/Core。我该怎么做才能摆脱他们?

谢谢,

下面是Podfile。

=========================

代码语言:javascript
复制
# 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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-12-29 21:53:31

AppAuth是一个专为iOS 7设计的及以上的GoogleSignIn的依赖性

通过删除Podfile中的最小post_install版本7,将Podfile中的iOS脚本中的版本更改为10将引发警告。

与其删除它,还可以通过将最低版本更改为9来消除警告和Xcode 12警告,因为它不支持iOS 8:

代码语言:javascript
复制
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脚本。

票数 1
EN

Stack Overflow用户

发布于 2020-12-29 18:03:53

正如所示的Xcode所示,因此不推荐使用此新方法而不是openUrl

代码语言:javascript
复制
open func open(_ url: URL, options: [String : Any] = [:],
              completionHandler completion: (@escaping (Bool) -> Swift.Void)? = nil)

如果您认识到两个新的参数具有默认值:一个空字典和一个可选的闭包,即为零。这就是为什么您可以很容易地用作openUrl的原因。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65496450

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档