Expo iOS 构建不工作--“无法从 App Store Connect 接收最新的 API 密钥"

Expo iOS Build Not Working--quot;Could Not Receive Latest API Key from App Store Connectquot;(Expo iOS 构建不工作--“无法从 App Store Connect 接收最新的 API 密钥)

本文介绍了Expo iOS 构建不工作--“无法从 App Store Connect 接收最新的 API 密钥"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用 Expo-cli 构建我的第一个应用程序.我在 Windows 10 上.我有一个 Apple Developer 帐户,目前正在尝试为 iOS 构建.但是,每当我运行expo build:ios"时,都会出现以下错误:

I am currently in the process of trying to build my first app using Expo-cli. I am on Windows 10. I have an Apple Developer account and am just trying to build for iOS at the moment. However, whenever I run "expo build:ios" I get the following errors:

Connection reset by peer - SSL_connect
>>Error while gathering & validating credentials
>>Error: Reason:Unknown reason, raw:"Could not receive latest API key from App Store Connect, this might be a server issue."
>>Reason:Unknown reason, raw:"Could not receive latest API key from App Store Connect, this might be a server issue."

当我运行set EXPO_DEBUG=true expo build:ios"并输入我的 Apple 凭据时,我得到以下信息:

When I run "set EXPO_DEBUG=true expo build:ios" and enter my Apple credentials, I get the following information:

Error: Reason:Unknown reason, raw:"Could not receive latest API key from App Store Connect, this might be a server issue."
    at Object._callee4$ (C:expo-cli@2.6.14srccommandsuildauth.js:135:11)
    at tryCatch (C:UsersdanieAppDataRoaming
pm
ode_modulesexpo-cli
ode_modules
egenerator-runtime
untime.js:62:40)
    at Generator.invoke [as _invoke] (C:UsersdanieAppDataRoaming
pm
ode_modulesexpo-cli
ode_modules
egenerator-runtime
untime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (C:UsersdanieAppDataRoaming
pm
ode_modulesexpo-cli
ode_modules
egenerator-runtime
untime.js:114:21)
    at step (C:UsersdanieAppDataRoaming
pm
ode_modulesexpo-cli
ode_modulesabel-runtimehelpersasyncToGenerator.js:17:30)
    at C:UsersdanieAppDataRoaming
pm
ode_modulesexpo-cli
ode_modulesabel-runtimehelpersasyncToGenerator.js:28:13
    at process._tickCallback (internal/process/next_tick.js:68:7)

我尝试过运行服务器并在多个网络上构建,但没有成功.我在任何平台上都没有发现任何其他类似的问题.

I have tried running the server and build on multiple networks with no luck. I have not found any other questions similar to this on any platform.

有没有人知道我可以做些什么来解决这个问题?提前致谢!

Does anyone have any ideas of what I can do to solve this issue? Thanks in advance!

推荐答案

更新到最新版本的 Expo-cli 为我解决了这个问题.它整合了 Apple Developer Account API 的最新更改,需要 2FA 才能访问帐户.

Updating to the latest version of Expo-cli solved this for me. It incorporates latest changes from Apple Developer Account API requiring 2FA to access account.

在终端中为项目运行 npm install -g expo-cli.

Run npm install -g expo-cli in terminal for project.

这篇关于Expo iOS 构建不工作--“无法从 App Store Connect 接收最新的 API 密钥"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Expo iOS 构建不工作--“无法从 App Store Connect 接收最新的 API 密钥"

基础教程推荐