执行expo build:ios时Apple Developer Portal中的身份验证失败 [英] Failed authentication in Apple Developer Portal when execute expo build:ios

查看:85
本文介绍了执行expo build:ios时Apple Developer Portal中的身份验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自动配置通过Gitlab-CI使用Expo构建iOS应用.这是我正在使用的命令:

I'm trying to config automatically build iOS apps using Expo through Gitlab-CI. This are the commands that I am using:

expo login -u expo_user -p expo_pass
expo build:ios --non-interactive --apple-id my_id@domain.com --clear-dist-cert --clear-provisioning-profile --dist-p12-path "path_to_file.p12" --provisioning-profile-path "path_to_file.mobileprovision"

我已经传递了这个环境变量的值:

I am already passing the respective values of this env vars:

EXPO_APPLE_PASSWORD
EXPO_IOS_DIST_P12_PASSWORD

在执行第二个命令期间,它将启动以下日志:

During the 2nd command execution it launch this logs:

[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 (/expo-cli@3.13.1/src/appleApi/fastlane.ts:28:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at Object.authenticate (/expo-cli@3.13.1/src/appleApi/authenticate.ts:46:40)
    at IOSBuilder.getAppleCtx (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:47:23)
    at IOSBuilder.produceMissingCredentials (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:123:22)
    at IOSBuilder.prepareCredentials (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:65:7)
    at IOSBuilder.run (/expo-cli@3.13.1/src/commands/build/ios/IOSBuilder.js:19:7)
    at IOSBuilder.command (/expo-cli@3.13.1/src/commands/build/BaseBuilder.js:55:7)
    at Command.<anonymous> (/expo-cli@3.13.1/src/exp.ts:81:7)

我正在使用的Apple Developer帐户已配置两因素身份验证(2FA).

The Apple Developer account that I am using have configured the Two Factor Authentication (2FA).

这是expo build:ios 命令使针对Apple Portal的身份验证失败的原因吗?我在此命令中缺少什么?

Is this the reason why the expo build:ios command is failing the auth against Apple Portal? What am I missing in this commands?

PS:我的笔记本电脑上的这些命令正常工作!

PS: These commands on my laptop works fine!

推荐答案

答案不是很令人满意,但是它对我有用:删除您的 node_modules ,然后重新安装所有依赖项.

Not a very satisfying answer, but it worked for me: Delete your node_modules and then reinstall all your dependencies.

上周我们没问题,但是今天我们一直遇到这个错误.

We had no problem last week, but today we kept hitting this error.

只要您拥有 yarn.lock 或NPM的等效版本,此可能的修复程序的风险就为零,从而可以确保下载的版本与原始版本匹配.

This possible fix has zero risk as long as you have a yarn.lock or NPM's equivalent so that you can be sure the versions you download match the originals.

这篇关于执行expo build:ios时Apple Developer Portal中的身份验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆