使用 Apple Developer Portal 进行身份验证时,Expo 的 eas build 命令 (iOS) 失败

She*_*ims 4 build apple-developer expo

我的团队开发了一个应用程序,并将发布到各自的应用程序商店。

\n

尝试构建应用程序的用户是拥有 Apple 开发人员帐户的组织的成员。

\n

运行“eas build”时,我们收到以下错误

\n
eas build  \n\xe2\x9c\x94 Build for platforms \xe2\x80\xba All\n\xe2\x9c\x94 Linked to project @{user}/{ProjectName}\n\xe2\x9c\x94 Using remote Android credentials (Expo server)\nUsing Keystore from configuration: Build Credentials {ProjectName} (default)\n\xe2\x9c\x94 Compressed project files 1s (11.8 MB)\n\xe2\x9c\x94 Uploaded to EAS 21s\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 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 {user}@gmail.com\n\xe2\x80\xba Restoring session /Users/{user}/.app-store/auth/{user}@gmail.com/cookie\n\xe2\x80\xba Session expired Local session\n\xe2\x80\xba Using password for {user}@gmail.com from your local Keychain\n  Learn more: https://docs.expo.io/distribution/security#keychain\n\xe2\x9c\x94 Logged in New session\nAuthentication with Apple Developer Portal failed!\n    Error: Cannot extract key "teams" from response data of type string: <!DOCTYPE html>\n    <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n    <head>\n    ...\n    </head>\n    </html>\n
Run Code Online (Sandbox Code Playgroud)\n

She*_*ims 7

对于遇到同样问题的其他人,只需与团队管理员一起访问苹果开发者网站并接受新的条款和条件即可解决此问题。


小智 7

我能够通过使用npm install -g eas-cli.