expo build:ios apple authentication fails

When I run the expo build:ios command it fails with the following error message just after entering the apple account password:

? Apple ID: xxx@xxxxx.com
? Password (for xxx@xxxxx.com): [hidden]
Saving Apple ID password to the local Keychain. Learn more https://docs.expo.io/distribution/security#keychain
Authenticating to Apple Developer Portal...
Authentication with Apple Developer Portal failed!
bash exited with non-zero code: 1
Error: bash exited with non-zero code: 1
    at ChildProcess.completionListener (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:65:13)
    at Object.onceWrapper (events.js:300:26)
    at ChildProcess.emit (events.js:210:5)
    at ChildProcess.cp.emit (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
    ...
    at spawnAsync (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\spawn-async\src\spawnAsync.ts:26:19)
    at runAction (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\appleApi\fastlane.ts:20:28)
    at authenticate (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\appleApi\authenticate.ts:49:46)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Context.ensureAppleCtx (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\credentials\context.ts:81:24)
    at IOSBuilder.bestEffortAppleCtx (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\commands\build\ios\IOSBuilder.ts:97:14)
    at IOSBuilder.prepareCredentials (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\commands\build\ios\IOSBuilder.ts:153:5)
    at IOSBuilder.run (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\commands\build\ios\IOSBuilder.ts:62:7)
    at IOSBuilder.command (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\commands\build\BaseBuilder.ts:39:7)
    at Command.<anonymous> (C:\Users\krist\AppData\Roaming\npm\node_modules\expo-cli\src\exp.ts:302:7)

Here’s my expo diagnosis:

 Expo CLI 3.26.2 environment info:
    System:
      OS: Windows 10 10.0.18362
    Binaries:
      Node: 12.13.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.19.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.12.1 - C:\Program Files\nodejs\npm.CMD
    IDEs:
      Android Studio: Version  3.5.0.0 AI-191.8026.42.35.5977832
    npmPackages:
      expo: ^37.0.12 => 37.0.12
      react: 16.9.0 => 16.9.0
      react-dom: 16.9.0 => 16.9.0
      react-native: https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz => 0.61.4
      react-native-web: ^0.11.7 => 0.11.7
      react-navigation: ^4.4.0 => 4.4.0

I’ve followed the instructions as per the documentation:

Windows users* must have WSL enabled. You can follow the installation guide here. We recommend picking Ubuntu from the Windows Store. Be sure to launch Ubuntu at least once. After that, use an Admin powershell to run: `Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

I can also login into the apple dev account with no problems.

Any help on this would be greatly appreciated.
Thanks in advance!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.