Apple 在 ios13 下登录

Goo*_*iec 5 iphone xcode ios apple-sign-in

我有一个关于 Apple 登录的问题。在 App Store Guideline 中,我们发现当应用程序使用第三方登录选项(如 google 或 facebook)时,Apple Sign in 是强制性的。据我所知,苹果登录机制是在 ios 13 中添加的。如果我想构建应用程序怎么办iOS 的最低版本设置为 11 还是 12?我仍然需要实现 Apple 登录(如果是,如何实现?)?

Moh*_*mar 3

private func setupLoginWithAppleButton() {\n        if #available(iOS 13.0, *) {\n            //Show sign-in with apple button. Create button here via code if you need. \n        } else {\n            // Fallback on earlier versions\n            //Hide your sign in with apple button here.\n        }\n    }\n
Run Code Online (Sandbox Code Playgroud)\n\n
\n\n

如果您收到错误:授权返回错误:操作无法完成\xe2\x80\x99。(com.apple.AuthenticationServices.AuthorizationError 错误 1000。)

\n\n
\n

只需从功能中添加“使用 Apple 登录”即可。

\n
\n

  • 从 iOS 13 开始,其他社交登录都必须通过 Apple 登录。所以在 iOS 12 中没有 SignIn With Apple。是的,Apple 会批准应用程序。 (4认同)