加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

xcode – Apple TestFlight上传警告ITMS-90191:缺少`beta-repor

发布时间:2020-12-15 01:55:33 所属栏目:百科 来源:网络整理
导读:当我上传一个构建到新的苹果拥有和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 Test
当我上传一个构建到新的苹果拥有和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.

链接的常见问题声明:

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。我创建了这样:

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

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

因此,配置配置文件设置为生产,并且包含beta报告活动授权。

但是,当将此版本上传到TestFlight时,iTunes Connect将继续抱怨。

关于如何解决这个问题的任何想法?这是苹果的错误吗?

rdar:// 20128048

解决方法

首先,请确保您正在使用App Store Distribution Provisioning Profile。这可能是您用于签署苹果前Apple TestFlight版本的Ad Hoc Distribution Provisioning Profile的不同配置配置文件。

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

beta报表活动密钥必须包含在配给配置文件和目标的权利中。

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>

在将目标权限添加到我的目标之后,我可以在没有ITMS-90191警告的情况下,将该版本成功上传到iTunes Connect TestFlight:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读