`expo build:ios` 突然又开始要求凭据了

`expo build:ios` suddenly starts asking for credentials again

我们一直在使用 expo 从命令行构建 ipa,但突然它要求:

Trying to authenticate with Apple Developer Portal…
Authenticated with Apple Developer Portal successfully!
Only 1 team associated with your account, using Apple Team with ID: xxxxx
We are missing the following credentials from you: Apple Distribution Certificate, Apple Push Notifications service key, Apple Provisioning Profile
? How would you like to upload your credentials?
❯ Expo handles all credentials, you can still provide overrides
I will provide all the credentials and files needed, Expo does limited validation

我相信上次我们这样做是让 expo “处理所有凭据”,但现在它再次询问,如果 expo 正在处理它们,它似乎忘记了。

我担心再次调用它,因为我不确定后果是什么。

当我select“我会提供所有凭证”时,我似乎无法在 Apple Developer 网页上找到所有需要的文件。

  1. 运行 Expo 处理所有凭据,您仍然可以多次提供覆盖吗?

  2. 有任何后果吗?
  3. 为了给他们证书,这些证书在苹果页面上,有没有人知道哪些部分是不可重新生成的,比如我们需要保存的签名证书(即像私钥一样)

expo diagnostics:

Expo CLI 3.9.1 environment info: System: OS: Linux 4.15 Ubuntu 18.04.3 LTS (Bionic Beaver) Shell: 4.4.20 - /bin/bash Binaries: Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node npm: 6.11.1 - ~/.nvm/versions/node/v10.16.3/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman npmPackages: @types/react: ^16.9.11 => 16.9.11 @types/react-native: ^0.60.22 => 0.60.22 expo: ^34.0.3 => 34.0.4 react: 16.8.3 => 16.8.3 react-native: https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz => 0.59.8 react-navigation: ^3.11.1 => 3.11.1 npmGlobalPackages: expo-cli: 3.9.1

修复它,这是因为我们为不同的 envs 提供了单独的 App.json 文件,而我们在其中的文件不是 prod 文件——这意味着标识符不正确,expo 从未管理过这些文件证书。 :slight_smile: