I cannot build App for Apple Enterprise using the following command:
expo build:ios -c
After entering apple id and password, it asks for 6 digit code. Here is output from my console with links removed…
Checking if there is a build in progress…
Please enter your Apple Developer Program account credentials. These credentials are needed to manage certificates, keys and provisioning profiles in your Apple
The password is only used to authenticate with Apple and never stored.
? Apple ID: AppDevelopment@mycompany.com
? Password (for AppDevelopment@mycompany.com): [hidden]
Trying to authenticate with Apple Developer Portal…
Available session is not valid any more. Continuing with normal login.
Two-factor Authentication (6 digits code) is enabled for account ‘AppDevelopment@mycompany.com’
More information about Two-factor Authentication: ***
If you’re running this in a non-interactive session (e.g. server or CI)
check out github***/fastlane/fastlane/tree/master/spaceship#2-step-verification
sms to escape this prompt and select a trusted phone number to send the code as a text message)
(You can also set the environment variable
SPACESHIP_2FA_SMS_DEFAULT_PHONE_NUMBER to automate this)
(Read more at: ***
Please enter the 6 digit code:
Authentication with Apple Developer Portal failed!
Reason: Unknown reason, raw: “Unauthorized Access”
Error: Reason: Unknown reason, raw: “Unauthorized Access”
at runAction (C:\firstname.lastname@example.org\src\appleApi\fastlane.ts:28:17)
at processTicksAndRejections (internal/process/task_queues.js:88:5)
at Object.authenticate (C:\email@example.com\src\appleApi\authenticate.ts:46:40)
at IOSBuilder.getAppleCtx (C:\firstname.lastname@example.org\src\commands\build\ios\IOSBuilder.js:47:23)
at IOSBuilder.produceMissingCredentials (C:\email@example.com\src\commands\build\ios\IOSBuilder.js:123:22)
at IOSBuilder.prepareCredentials (C:\firstname.lastname@example.org\src\commands\build\ios\IOSBuilder.js:65:7)
at IOSBuilder.run (C:\email@example.com\src\commands\build\ios\IOSBuilder.js:19:7)
at IOSBuilder.command (C:\firstname.lastname@example.org\src\commands\build\BaseBuilder.js:55:7)
at Command. (C:\email@example.com\src\exp.ts:81:7)
Apple immedietly sends a second 6 digit code after this error, but at this point it has exited and I cannot enter the second one.
I have tried this a few times and am sure that the 6 digit code is correct. I have also tried on windows and mac with same result.
My expo setup is the following:
Expo CLI 3.11.3 environment info:
OS: Windows 10
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
Android Studio: Version 188.8.131.52 AI-181.55184.108.40.20656338
Is anyone able to help solve this issue?