AppID登陆

打开开发者网站

http://developer.apple.com/

登上开发者账号

找到应用程序的ID

如果是新的应用

直接在新建应用的时候勾选上(新建过得编辑然后勾选)

Sign In with Apple

如图

AppID登陆

然后用Xcode打开或者新建的项目

添加AuthenticationServices.framework

TARGETS -> Build Phases -> Link Binary With Libraries -> AuthenticationServices.framework

然后再添加App登录的功能

TARGETS -> Signing& Capabilities -> +Capability -> Sign In with Apple

如图

AppID登陆

紧接着就可以再登录页面实现具体的功能

Demo地址 https://github.com/YouZhiZheShiJingCheng/AppleIDLogin

猜你喜欢

转载自blog.51cto.com/2254359459/2482940