xcode - Apple TestFlight 上传警告 ITMS-90191 : missing `beta-reports-active` entitlement

标签 xcode app-store-connect testflight

当我将构建上传到 Apple 拥有且集成 iTunes Connect 的新 TestFlight 时,我看到以下日志:

WARNING ITMS-90191: "Missing beta entitlement. Your app does not include the beta-reports-active entitlement. If you intend to distribute this build via TestFlight for beta testing, please re-build this app with a newly generated provisioning profile."

当我查看 iTunes Connect 上的构建时,我还看到以下警告:

To use TestFlight Beta Testing, build X.Y.Z must contain the correct beta entitlement. For more information, see the FAQ.

To use TestFlight Beta Testing, build X.Y.Z must contain the correct beta entitlement. For more information, see the FAQ.

链接的常见问题解答指出:

What should I do if my prerelease build does not contain the correct beta entitlement?

To use the TestFlight app to test your prerelease build, it must be signed with an App Store Distribution Provisioning profile that includes the beta entitlement. New Distribution Provisioning profiles generated in the iOS Developer Center will automatically contain the beta entitlement.

If you have an existing Distribution Provisioning Profile that was generated before the launch of TestFlight Beta Testing, you must regenerate the profile.

问题是我正在使用新创建的App Store Distribution Provisioning Profile。我是这样创建的:

App Store Distribution Provisioning Profile

当我检查下载的配置文件的来源时,我看到:

<key>Entitlements</key>
<dict>
    // ...
    <key>aps-environment</key>
    <string>production</string>
    <key>beta-reports-active</key>
    <true/>
    // ...

因此,配置配置文件设置为生产,并且确实包含beta-reports-active 权利。

但是,当此版本上传到 TestFlight 时,iTunes Connect 继续提示。

关于如何解决此问题有什么想法吗?这是苹果的错误吗?

rdar://20128048

最佳答案

首先,请确保您使用的是App Store Distribution Provisioning Profile。这可能与您用于签署 Apple TestFlight 之前版本的临时分发配置文件不同配置文件。

在切换到 App Store 分发配置文件后,我继续遇到 ITMS-90191 错误。我通过将 beta-reports-active 键添加到 Xcode 项目中 Target 的 Entitlements.plist 文件中来解决此问题。

beta-reports-active key 必须包含在配置文件目标的权利中。

TargetName.entitlements:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>

    // ...

    <key>beta-reports-active</key>
    <true/>

    // ...

</dict>
</plist>

将权利添加到我的目标后,我能够成功地将构建上传到 iTunes Connect TestFlight,而不会出现 ITMS-90191 警告:

enter image description here

关于xcode - Apple TestFlight 上传警告 ITMS-90191 : missing `beta-reports-active` entitlement,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28998478/

相关文章:

iphone - iTunes connect 是否会自行将矩形应用程序图标转换为圆形应用程序图标?

iphone - TestFlight 升级是否会破坏应用程序中的核心数据方案?

swift - 将 FLEX 与 Swift 项目结合使用

ios - ItunesConnect 永远处理应用程序

ios - 无法提交使用 Xcode Beta 创建的应用程序

ios - Distribution Provision Profile 不包括签名证书 iPhone Developer xxxx xxxx

ios - Testflight 邀请电子邮件的按钮不可点击

iphone - 在xcode中更改iPhone的大小以进行 Storyboard预览

ios - 将 JSON 元素作为 Sections Title 和 Cell title 放入 TableView

iphone - 未通过 Graph API 接收 Facebook 图片