expo: [AppleAuthentication][Managed app][iOS] Standalone: AuthorizationError error 1000
š Bug Report
I am able to sign in with apple when Iām using my app through the iOS Expo Client. However, Iām having an error in my standalone app
The error:
The operation couldnāt be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)
The code:
try {
const data = await AppleAuthentication.signInAsync({
requestedScopes: [
AppleAuthentication.AppleAuthenticationScope.FULL_NAME,
AppleAuthentication.AppleAuthenticationScope.EMAIL
]
})
} catch (error) {
// the error happens here
}
I suspect itās a configuration issue, but I followed the steps in:
- https://github.com/expo/expo/tree/master/packages/expo-apple-authentication
- I also added
ios.usesAppleSignInto myapp.json
Any ideas what could be the issue?
Environment
Production - Managed App - Standalone iOS
Steps to Reproduce
N/A
Expected Behavior
Pressing the sign in button should open the sign in modal.
Actual Behavior
Pressing the sign in button throws an error.
Reproducible Demo
N/A
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 11
- Comments: 29 (12 by maintainers)
Make sure the āApple Sign-inā entitlement is added to your build settings. If youāre running a development build, try switching to a production build. You might need to go as far as signing the app bundle for Ad Hoc distribution and installing it that way, vs. running in Xcode.
donāt forget add apple sign-in capabilities at xcode target project
@tsapeta the archive build worked like a charm. Odd that itās not working as expected on a simulator
Adding the entitlement is only relevant if you are building the app with Xcode. In managed mode Expo does the build for you so they are responsible for that setting.
Yeah, I think it might be needed. Could you try to run a new build with
expo build:ios --clear-provisioning-profile --revoke-credentialswhich should recreate a new provisioning profile with updated capabilities inside. Let me know if it doesnāt help šIām experiencing the same thing, with the same error message:
ERR_APPLE_AUTHENTICATION_REQUEST_FAILED: The operation couldnāt be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)Apple sign-in doesnāt work for me either after simulator build.
it used to run on simulators just fine. But now it isnāt. Iām getting the same error
@dankras, do you have
expo.ios.usesAppleSignInset totruein yourapp.json? If not, then try to add this and make another build š This lets our builders know to add appropriate entitlements and capabilities to your app.