这事让我非常担心。我刚刚下载了iPhone 3.0 SDK,但现在我无法让我的配置文件工作。以下是我的尝试:
删除所有配置配置文件
删除登录keychain
创建新的“登录”钥匙链,使它
默认的
创建一个新的证书签名请求
创建新的开发人员和分销渠道
证书在苹果开发者中心
下载并安装它们
下载并安装WWDR证书
创建一个新的配置文件和
双击它来安装
所有的证书报告都是有效的,但是Xcode仍然不能识别它们。接下来我该试试什么?
编辑:
我完全重新安装了Mac OS X,从一个新的安装安装了3.0 SDK,仍然有同样的问题。
昨天我们的CI服务器也遇到了类似的问题。无法对应用程序扩展名进行错误签名
Code Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier XXX were found.
注意:我自己从开发者门户网站创建了配置文件(不是由Xcode管理的)。
错误在于,我已经使用分发证书创建了供应配置文件,但是构建设置设置为使用开发人员证书。将其更改为使用分发证书解决了这个问题。
摘要:在生成设置中也要匹配用于创建配置文件的证书。
For Xcode 13 (maybe earlier?) - The key to this is to use the "Build Settings" tab, not the "Signing and Capabilities" tab in your Target Settings. Once you are in "Build Settings", search for the "Signing" section (you can type "Signing" in the search box). There you will see a sub-section called Code Signing Identity. In that section you can click on each line and directly choose any certificate you have in your keychain. You need to do that for all of the relevant configurations (the ones that you want to upload to TestFlight/AppStore). When you go back to the "Signing and Capabilities" tab, you should see the results of what you did and the error should have gone away.
我从下面的答案中得到了灵感:https://stackoverflow.com/a/37043501/826946
但我认为明确地列出这一点可能会有所帮助。