Xcode6 error: "No matching provisioning profiles found for application"

Xcode6 error: "No matching provisioning profiles found for application"

我正在尝试在 Xcode6 中提交我的 iOS 应用程序。当我在管理器中单击提交或验证时,会弹出一个 window,上面写着:

Failed to locate or generate matching signing assets:

Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues:

No matching provisioning profiles found for "Applications/MyApp.app”

None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups.

我已经在会员中心为这个应用程序创建了一个分发配置文件,它出现在 Xcode 中。 我环顾四周,没有在网上找到任何告诉我如何解决这个问题的信息。谁能帮忙?谢谢

安迪

您的问题有几种可能性,但主要原因是我从经验和其他 SO 答案中得到的。

  1. 您的证书或个人资料已过时,在这种情况下,您必须重新生成个人资料。我以前遇到过这个问题,但是 Apple 已经(部分)描述了这个问题。
  2. 您尚未在 Build Settings/Code Signing 区域中设置您的个人资料以及相应的证书。在 General/Identity 中验证您的 Team 并确保您的个人资料设置正确。

    来自Xcode 5: Code signing entitlement errors(图像有点过时,但与Xcode 6相同):

  3. 您正在使用 Xcode 的测试版。
  4. @jaytrixz 指出:"I just removed Entitlements.plist in Code Signing Entitlements under Build Settings" 这可能会起作用。请确保您的配置文件也已配置。

作为jaytrixz,在评论中写道...

"I just removed Entitlements.plist in Code Signing Entitlements under Build Settings "

我做了同样的事情,并且在尝试其他事情一个小时后成功了!

如果您确定您拥有有效的证书和配置文件,那么您可能需要执行以下操作:

我建议人们通过执行以下操作来刷新 xCode 和开发者帐户之间的 link:

转到 Xcode -> 首选项 -> 帐户 -> 查看详细信息 -> (刷新图标)

否则您可能无法在构建设置中将供应配置文件作为一个选项看到(您可能只能看到旧的配置文件)

很多时候它给我连接错误,你可能需要重试。

每次在 apple developer member center 在线编辑配置文件或证书时都刷新

如果证书和构建设置都很好,并且您是多个团队的一员,请确保select the proper team for the app。 清理并再次存档。

在尝试了世界上所有可能的修复方法之后,我最终将其添加到权利文件中:

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

通过查看 Targets > Build Settings > Code Signing > Code Signing Entitlements 找到正确的权利文件。

也许这与 this Apple doc 有关,尽管我无法完全按照说明进行操作,因为 XCode 7 中缺少某些内容(例如首选项 > 帐户中的刷新图标)。

如果其他解决方案不起作用,请尝试转至 XCode -> 首选项 -> 帐户 -> 查看详细信息

现在查看配置文件部分。如果您的配置文件有 'Download' 操作按钮,请单击该按钮并下载。然后重试

这个问题还有其他原因。

我有 3 种不同的配置 (调试、AdHoc、AppStore)。我不小心在 Archive Scheme 设置中选择了 AdHoc Configuration,并尝试将生成的存档上传到 AppStore。

所以将存档配置设置为 AppStore 解决了我的问题。

如果您只有开发配置文件,也只需创建分发

我玩了 fastlane gym,它给出了一些有趣的见解:

There was an error exporting your application Unfortunately the new Xcode export API is unstable and causes problems on some project You can temporary use the :use_legacy_build_api option to get the build to work again

这是相应的错误报告。好像一个月不固定了。 https://openradar.appspot.com/radar?id=4952000420642816

在传统模式下构建应用对我来说很有效。

gym --use_legacy_build_api true

希望,这对任何人都有帮助。

出现此消息的另一个可能原因是,如果您不小心删除了授权文件的 'target inclusion checkbox' – 在这种情况下,错误消息会有点误导...

可以在以下位置找到为我解决此问题的另一种解决方案:Xcode Watchkit: None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups

简要说明:清楚~/Library/MobileDevice/Provisioning Profiles

在我的 Health kit 授权文件中有开发密钥。我删除了它,我的问题就解决了。

希望这个回答对您有所帮助:)

创建新的配置文件

当我遇到这个问题时,这个解决方案对我有用。

一步一步:

  1. 登录 Apple 开发者门户并转到此处:https://developer.apple.com/account/ios/profile/production

  2. 单击 [+] 添加按钮并填写新的个人资料名称和 select 您的应用程序 ID

  3. 单击“下载”按钮,下载完成后双击打开 Xcode

    中的文件
  4. 重新存档,这次应该可以成功上传到商店

这里有很多答案,有些在过去对我有用,但这次没有。我什至创建了一个新的配置文件,但仍然无济于事。 基于错误的“None of the valid provisioning profiles allowed the specified entitlements”错误的一部分,我凭直觉尝试了以下方法,它对我有用:

1。添加和删​​除特定功能

转到“目标”>“功能”,打开然后关闭其中一个。
我怀疑你选择哪个很重要,我添加了 "Push Notifications"(我的应用程序不需要它),一旦它是 "ON",我将它改回 "OFF"

2。再次存档

我现在已成功将我的应用程序上传到商店。

在我的例子中,问题是由于 Target General 选项卡中的 Bundle Identifier 与 Build Setttings 中的不同造成的。

都2017年了,规定还没有生效。我不得不将它们置于手动模式,因为半小时后自动模式不起作用。我不知道那些权利是什么,我没有权利文件。

这个错误似乎有很多可能的原因。

就我而言,我的应用程序是 Enterprise 版本,当我应该直接前往时,我点击了“Validate” “导出”。

我在 Apple 文档中找到了这个:

Validate or Submit is not intended to be used with Development, Ad Hoc or Enterprise builds. Ad Hoc or Enterprise distributions should skip straight to Export.

来源:https://developer.apple.com/library/content/qa/qa1830/_index.html

我 运行 使用应用程序组解决了这个问题。为了解决这个问题,我必须登录 developer.apple.com 并将 App Group ID 重新分配给我的 App ID。