xcode 没有任何有效的配置文件允许指定的功能:功能:inAppPurchase

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36717871/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:44:47  来源:igfitidea点击:

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

xcodeprovisioning-profilecode-signing-certificate

提问by Viktor

I have working application in AppStore. It has inApp Purchases.

我在 AppStore 中有工作应用程序。它有应用内购买。

Certificate and provision profile was expired.

证书和配置文件已过期。

I updated it, but XCode wrote:

我更新了它,但 XCode 写道:

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

“代码签名错误:找不到匹配的配置文件:没有任何有效的配置文件允许指定的功能:功能:inAppPurchase..”

I pressed "Fix Issue Automatically", XCode wrote

我按下“自动修复问题”,XCode 写道

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

“标识符为 'com.mycompany.myproj' 的应用 ID 不可用。请输入其他字符串。”

This indefinier is bundle id of my application, and I did not change it.

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

How to fix this error?

如何修复此错误?

回答by Viktor

I fixed this problem next way:

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

  • remove all provision profiles which links with problem project (using ?iPhone Configuration Utility?)
  • generate new provision profile on developer.apple.com
  • download and install this provision profile (and updated expired provision profiles) on local computer
  • choose new provision in "Code Signing Identity"
  • build project
  • 删除所有与问题项目相关联的配置文件(使用?iPhone 配置实用程序?)
  • 在 developer.apple.com 上生成新的配置文件
  • 在本地计算机上下载并安装此配置文件(以及更新的过期配置文件)
  • 在“代码签名身份”中选择新条款
  • 构建项目