EAS 构建 iOS 失败:Apple Developer Portal 身份验证失败

Kol*_*phy 42 ios react-native expo eas

我正在使用 EAS 构建我的 Expo 应用程序,今天在尝试在本地或 EAS 服务器上运行 iOS 构建时开始收到此错误。我认为这是苹果服务器的问题,所以我希望它能尽快得到解决。

\n

构建命令的输出:

\n
\xe2\x9c\x94 Select platform \xe2\x80\xba iOS\n\xe2\x9c\x94 Using remote iOS credentials (Expo server)\n\nIf you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.\nThis is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them.\n\xe2\x9c\x94 Do you want to log in to your Apple account? \xe2\x80\xa6 yes\n\n\xe2\x80\xba Log in to your Apple Developer account to continue\n\xe2\x9c\x94 Apple ID: \xe2\x80\xa6 ...\n\xe2\x80\xba Restoring session /Users/.../.app-store/auth/.../cookie\n\xe2\x80\xba Session expired Local session\n\xe2\x80\xba Using password for ... from your local Keychain\n  Learn more\n\xe2\x9c\x94 Logged in New session\nAuthentication with Apple Developer Portal failed!\n    Error: Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com\n
Run Code Online (Sandbox Code Playgroud)\n

其他人也遇到这个问题并且对如何解决它有任何想法吗?

\n

我尝试删除存储的身份验证 cookie 并再次登录。我还尝试登录 App Store Connect,看看我的帐户是否有任何问题,但我找不到。

\n

编辑:几天后问题自行解决。这很可能是 EAS 服务器与 Apple 的连接出现暂时性问题。

\n

小智 55

将 eas-cli 版本更新到版本 3.5.2 解决了我的问题。只需运行命令:

npm install -g eas-cli 
Run Code Online (Sandbox Code Playgroud)

它应该可以工作


cen*_*ver 5

我遇到了同样的错误。no选择问题后,我能够开始构建"Do you want to log in to your Apple account?"。我希望这个解决方法对您有用。

github问题https://github.com/expo/eas-cli/issues/1672#issuecomment-1416851869

编辑:正如@Dviros上面指出的,运行npm install -g eas-cli以获得最终的解决方案。


Or *_*ash 5

该问题现已由世博会团队修复。为了让它工作,您所要做的就是更新到最新的 eas-cli。这应该可以做到:

npm i -g eas-cli
Run Code Online (Sandbox Code Playgroud)

然后构建应用程序或将其提交到 iOS。

eas build --platform ios --auto-submit
Run Code Online (Sandbox Code Playgroud)

当然你可以忽略--auto-submit。