我正在尝试自动配置通过 Gitlab-CI 使用 Expo 构建 iOS 应用程序。
这是我正在使用的命令:
expo login -u expo_user -p expo_pass
expo build:ios --non-interactive --apple-id [email protected] /cdn-cgi/l/email-protection --clear-dist-cert --clear-provisioning-profile --dist-p12-path "path_to_file.p12" --provisioning-profile-path "path_to_file.mobileprovision"
我已经传递了这个环境变量的相应值:
EXPO_APPLE_PASSWORD
EXPO_IOS_DIST_P12_PASSWORD
在第二个命令执行期间,它会启动以下日志:
[14:24:23] Trying to authenticate with Apple Developer Portal...
[14:24:25] Authentication with Apple Developer Portal failed!
[14:24:25] Error: Reason: Unknown reason, raw: "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>Apple</center>\r\n</body>\r\n</html>\r\n\n"
at runAction (/[email protected] /cdn-cgi/l/email-protection/src/appleApi/fastlane.ts:28:17)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Object.authenticate (/[email protected] /cdn-cgi/l/email-protection/src/appleApi/authenticate.ts:46:40)
at IOSBuilder.getAppleCtx (/[email protected] /cdn-cgi/l/email-protection/src/commands/build/ios/IOSBuilder.js:47:23)
at IOSBuilder.produceMissingCredentials (/[email protected] /cdn-cgi/l/email-protection/src/commands/build/ios/IOSBuilder.js:123:22)
at IOSBuilder.prepareCredentials (/[email protected] /cdn-cgi/l/email-protection/src/commands/build/ios/IOSBuilder.js:65:7)
at IOSBuilder.run (/[email protected] /cdn-cgi/l/email-protection/src/commands/build/ios/IOSBuilder.js:19:7)
at IOSBuilder.command (/[email protected] /cdn-cgi/l/email-protection/src/commands/build/BaseBuilder.js:55:7)
at Command.<anonymous> (/[email protected] /cdn-cgi/l/email-protection/src/exp.ts:81:7)
我正在使用的 Apple 开发者帐户已配置双因素身份验证 (2FA).
这就是进博会的理由吗build:ios
命令对 Apple Portal 的身份验证失败?
我在这个命令中缺少什么?
PS:这些命令在我的笔记本电脑上运行良好!
我的开发机器上的交互模式下也发生了类似的问题。
碰巧对我有用的一件事是在隐身窗口中登录 App Store Connect 以触发 2FA。不确定这是否是巧合,但它确实有效!
作为参考,我在最新的版本中遇到了类似的错误[email protected] /cdn-cgi/l/email-protection
✖ Logging in...
Authentication with Apple Developer Portal failed!
Error: Apple Service Error -1018. Could Not Complete Request. Your request could not be completed because of an error. Please try again later. Apple servers may be down right
now, please try again in about 10-20 minutes
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)