【问题标题】:React Native Expo - unable to create Apple Provisioning Profile - not in the list of the created appsReact Native Expo - 无法创建 Apple 配置文件 - 不在创建的应用程序列表中
【发布时间】:2020-01-21 07:03:48
【问题描述】:

我正在使用 expo 来构建我的应用程序。每次我运行 expo build:ios

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, y
ou can still provide overrides
? Will you provide your own Apple Distribution Certificate? Let Expo handle the 
process
✔ Didn't find any previously uploaded Apple Distribution Certificate
? Will you provide your own Apple Push Notifications service key? Let Expo handl
e the process
✔ Didn't find any previously uploaded Apple Push Notifications service key
✖ Something went wrong when trying to ensure App ID exists on Apple Developer Portal!
/Users/michal/.config/yarn/global/node_modules/@expo/traveling-fastlane-darwin/traveling-fastlane-1.11.3-osx/ensure_app_exists exited with non-zero code: 1

实际上,除了我无法创建的供应配置文件之外,我还有所有这些,因为我的应用不在已创建的应用列表中。我花了半个月的时间来开发该应用程序并获得客户批准并在 Android 上工作,但我无法将 iOS 推送到生产环境。我正在为此奋斗第五天。有人可以帮忙吗?我尝试手动执行此操作,但即使这样也会失败,因为我缺少配置密钥。当我尝试自己做时,该应用程序根本不在应用程序列表中。关于如何做到这一点的任何想法?

更新:我刚刚创建了一个全新的空白测试应用程序(默认展示一个)并按照https://docs.expo.io/versions/latest/distribution/building-standalone-apps/ 运行相同的命令expo build: ios 我得到完全相同的答复。是否有文档中未描述的任何中间步骤。像我一样进入开发门户并在那里做一些事情(手动注册应用程序)?我很困惑。我认为这是直截了当的。

更新:运行expo doctor 我收到以下消息: Didn't find any issues with your project!

更新:运行 expo diagnostics 我得到以下信息:

  Expo CLI 3.11.3 environment info:
    System:
      OS: macOS 10.15.2
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 13.5.0 - /usr/local/bin/node
      Yarn: 1.21.1 - /usr/local/bin/yarn
      npm: 6.13.4 - /usr/local/bin/npm
    IDEs:
      Android Studio: 3.5 AI-191.8026.42.35.6010548
      Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^36.0.0 => 36.0.2 
      react: 16.9.0 => 16.9.0 
      react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4 
      react-navigation: ^4.0.10 => 4.0.10 

【问题讨论】:

  • 您应该尝试登录 Apple Developer Portal 以查看您的 app id 是否已注册
  • 嗨@JarvisLuong 感谢您的评论。我在 Apple Developer Portal 中,根据我的描述,在尝试手动创建配置文件时,我在列表中看不到该应用程序。我希望我可以通过自己提供所有证书来解决这个问题。我已经创建了密钥、p12、p8 证书,但我无法创建配置一个,因为该应用程序根本没有在应用程序列表中列出(我可以在那里看到 20 个,但它们都不是我要发布的那个)。有什么想法吗?
  • 嗯,您是否将应用程序 ID 更改为唯一的?
  • @JarvisLuong 在我看来并不像那个应用程序的问题。我创建了一个名为 test 的新版本,并尝试以完全相同的结果进行推送。几乎就好像我应该自己做证书,或者 cli 根本不起作用。文档是否齐全?我的意思是 expo build:ios 我需要在终端中输入所有内容并且所有内容都可以正常工作还是我需要在开发者帐户中做一些事情 - 比如自己创建证书?

标签: react-native expo


【解决方案1】:

确保您有适当的访问权限,在 Apple 开发者资料中为您的用户启用此复选框 “访问证书、标识符和配置文件。”

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-05-29
    • 1970-01-01
    • 1970-01-01
    • 2023-04-01
    • 2017-11-14
    • 2022-10-04
    • 1970-01-01
    相关资源
    最近更新 更多