iOS setup
Sign in with Apple needs two things on iOS: the capability on the app's identifier, and the entitlement in the app.
1. Enable the capability
In the Apple Developer portal, open the app's identifier and enable Sign in with Apple.
2. Add the entitlement
Add the key to the app's entitlements file in the permanent ios/ project:
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
The example app's file is a working reference: example/ios/NitroUI/NitroUI.entitlements.
:::warning Missing entitlement
Without the entitlement, signIn rejects with SIGN_IN_FAILED and ASAuthorizationError 1000. AuthenticationServices reports a missing entitlement, a missing capability and a device with no Apple ID all as that same unknown (1000) error.
:::
3. Sign the device in
A real sign-in needs a device or simulator signed in to an Apple ID, and the build must be signed by the team that owns the App ID.
Next: the quick start.