What went wrong
While trying to implement Sign in with Apple in React Native, I ran into the following error.
It failed on both the simulator and a real device, and I couldn't log in.
{code: '1000', domain: 'com.apple.AuthenticationServices.AuthorizationError', message: 'The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)'
The fix
- Add Sign in with Apple under Target/Signing & Capabilities
- Check whether Target/Build Settings/Code Signing Entitlements includes ServiceName/ServiceNameRelease.entitlements for both Debug and Release
In my case, the Debug field for the second item was blank, and that's what was causing the error above.

