将“使用Apple登录"允许应用向后兼容iOS 12及更低版本? [英] Will "Sign in With Apple" allow apps to be backward compatible with iOS 12 and lower?

查看:147
本文介绍了将“使用Apple登录"允许应用向后兼容iOS 12及更低版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实现新的Sign in With Apple功能是否会使应用与iOS 12及以下版本(与SwiftUI类似)不兼容?

Does implementing the new Sign in With Apple feature make an app incompatible with iOS 12 and below, similar to SwiftUI? Will it be possible to compile an app which has to import AuthenticationServices on something like XCode 10?

推荐答案

使用Apple本身登录不会使整个应用与iOS 12及更早版本不兼容(与SwiftUI相同).

Sign in with Apple itself doesn't make the whole app incompatible with iOS 12 and earlier (the same is for SwiftUI).

但是,当您需要支持这种功能(从iOS 13开始可用)时,您需要使用@available(iOS 13.0, *)属性和if #available(iOS 13.0, *)检查来有条件地禁用对这些功能的支持.否则,在运行旧版本iOS的设备上,您将遇到编译错误和/或崩溃.

But when you need to support this kind of feature (which is available starting iOS 13) you'll need to use @available(iOS 13.0, *) attribute and if #available(iOS 13.0, *) checks to conditionally disable support of those features. Otherwise you'll have compilation errors and/or crashes on devices running older versions of iOS.

如果您需要支持使用

If you need to support Sign in with Apple on earlier versions of iOS (as well as non-iOS platform), as mentioned by Apple Staff, you should use Sign in with Apple JS framework.

第二个问题,如 @ Paulw11 所述,答案为,因为Xcode 10不包括iOS 13 SDK.

For you second question, as @Paulw11 mentioned, the answer is No, since Xcode 10 doesn't include iOS 13 SDK.

这篇关于将“使用Apple登录"允许应用向后兼容iOS 12及更低版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆