Will “Sign in With Apple” allow apps to be backward compatible with iOS 12 and lower?

我们两清 提交于 2020-01-30 05:01:52

问题


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?


回答1:


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

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

If you want to support Sign in With Apple on older versions of iOS (as well as non-iOS platform) you can use use Sign in with Apple JS framework.

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



来源:https://stackoverflow.com/questions/57928420/will-sign-in-with-apple-allow-apps-to-be-backward-compatible-with-ios-12-and-l

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!