Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k views
in Technique[技术] by (71.8m points)

react native - Expo Build:ios Authentication with Apple Developer Portal failed

I'm trying to build my expo app for ios following expo documentation here. I have successfully published to expo and I have successfully built for android through the expo-cli. I am able to login to the Apple Developer dashboard so I know I have the correct login and password. When I run expo build:ios it returns

Authenticating to Apple Developer Portal...
Authentication with Apple Developer Portal failed!
bash exited with non-zero code: 1
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
    ...                                                                                                              pawn-asyncsrcspawnAsync.ts:65:13)
    at spawnAsync (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-cli
ode_modules@expospawn-asyncsrcspawnAnAsync.ts:26:19)
    at runAction (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrcappleApifastlane.ts:20:28)           oent.js:34:29)
    at authenticate (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrcappleApiauthenticate.ts:49:46)    
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at Context.ensureAppleCtx (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrccredentialscontext.ts:8181:24)                                                                                                               sync.ts:26:19)
    at IOSBuilder.bestEffortAppleCtx (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrccommandsuildiososIOSBuilder.ts:95:14)
    at IOSBuilder.prepareCredentials (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrccommandsuildiososIOSBuilder.ts:151:5)                                                                                              :24)
    at IOSBuilder.run (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrccommandsuildiosIOSBuilder.ts:IOSBuilder.ts:95:14)s:62:7)                                                                                                              IOSBuilder.ts:151:5)
    at IOSBuilder.command (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrccommandsuildBaseBuilder.ts62:7)ts:39:7)                                                                                                             :39:7)
    at Command.<anonymous> (C:UsersjaxblAppDataRoaming
pm
ode_modulesexpo-clisrcexp.ts:346:7)

Running expo diagnostics I get

  Expo CLI 4.0.4 environment info:
    System:
      OS: Windows 10 10.0.19042
    Binaries:
      Node: 12.18.3 - C:Program Files
odejs
ode.EXE
      npm: 6.14.6 - C:Program Files
odejs
pm.CMD
    IDEs:
      Android Studio: Version  4.1.0.0 AI-201.8743.12.41.6953283
    npmPackages:
      expo: ^40.0.0 => 40.0.0
      react: 16.13.1 => 16.13.1
      react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
      react-navigation: ^4.4.3 => 4.4.3
    Expo Workflow: managed

I have made sure WSL2 is enabled, I have Ubuntu installed and running, I have run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux from an Admin Powershell. In my bios SVM is enable, Hyper-V is turned on.

I have tried running expo build:ios from command prompt, Powershell, Admin Powershell with the same results.

I have seen other people with issues because of a new Apple Developer account. The one I am using was created two days ago but it seems like that should have been long enough that it would work.

I'm not sure what I am missing at this point so any help figuring it out would be much appreciated.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...