None 个有效配置文件允许指定的功能:功能:inAppPurchase

None of the valid provisioning profiles allowed the specified capabilities: Features: inAppPurchase

我在 AppStore 中有可用的应用程序。它有应用内购买。

证书和配置文件已过期。

我更新了它,但是 XCode 写道:

"Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified capabilities: Features: inAppPurchase.."

我按了"Fix Issue Automatically",XCode写了

"An App ID with identifier 'com.mycompany.myproj' is not available. Please enter a different string."

这个定义符是我的应用程序的bundle id,我没有改变它。

如何解决这个错误?

我接下来解决了这个问题:

  • 删除所有与问题项目链接的配置文件(使用 «iPhone 配置实用程序»)
  • 在 developer.apple.com
  • 上生成新的配置文件
  • 在本地计算机上下载并安装此配置文件(以及更新的过期配置文件)
  • 在"Code Signing Identity"
  • 中选择新条款
  • 构建项目