我得到这个错误,而我试图调试我的应用程序上的设备。

我创建了开发配置文件,正如开发人员门户中提到的那样。在概要文件中选择了我的开发设备,我正在从Target的代码签名标识菜单中选择正确的概要文件。我重新创建配置文件几次,也删除和重新安装它,并重新创建项目,但每当我尝试在设备上调试时,我都会得到它。

顺便说一句,临时分发条款概要文件可以工作。

我花了一整天的时间想找出解决办法,但一无所获。有人有办法吗?


当前回答

首先,你应该 1.添加您的设备标识到成员中心->设备。 2.生成开发人员供应概要 3.使用该配置文件在设备上运行app。

其他回答

在我的例子中,这是因为在密钥链中有几个版本的开发人员证书。

从My Certificates和Certificates中删除iPhone开发者证书,然后从开发中心下载最新的证书并安装(双击。cer文件)

解决了我的问题

在我的情况下,我的配置文件是无效的,因为苹果已经改变了一些条款和条件。为了解决问题,我不得不这么做

删除以前的配置文件。 我必须接受苹果网站的条款和条件。

另一个原因(已核实):

Apple has a major bug in Xcode going back to version 3.x, where it magically overwrites the OS X keychain with a fake keychain from inside Xcode, re-installing certs (and private keys!) that you already deleted ...so, if you have "new cert" installed, and nothing else, Xcode will sometimes get into an infinite loop where it will keep ALSO installing "old cert" (that doesn't exist anywhere except inside XCode!). ...and because of ANOTHER bug in Xcode (unfixed for 3+ years now...), Xcode sometimes automatically selects the "oldest cert I can find" (whcih, by definition, is incorrect - I think someone at Apple got mixed up between "oldest" and "newest" :( ) ...and EVEN THOUGH you've selected the correct provisioning profile, Xcode sends the "old" provisioning profile to the device, then signs with the "new" profile, causing this error

解决方案:你必须unfubar Xcode的FUBAR你的钥匙链。

这比听起来要难(关于这个话题有很多SO帖子)-它涉及到多次重启你的机器,每次都删除密钥。

最终,Xcode放弃破坏你的操作系统,并接受你呈现给它的现实:)。

这抓住了我,因为有人改变了“运行”配置的“构建配置”设置为“发布”(在“产品”>“编辑方案..”下)。> "Run *.app")。

这通常被设置为“调试”,因此它没有使用我所期望的开发人员证书和配置文件,而是使用分发证书。

除此之外,我发现如果你在控制台日志中查找设备(通过组织者),可能会有一个错误代码更好地表明你的问题。例如,我有……

Mon Sep  5 09:39:56 unknown installd[304] <Error>: profile not valid: 0xe8008012

然后,我在谷歌上搜索“0xe8008012”,得到了以下页面,显示“0xe8008012 -设备的UUID与正在加载的配置文件中的任何UUID不匹配”错误。

MobileInstallation

以我为例,两个月前我在iPhone上手动设置时间时就遇到了问题。但是当我自动设置时间时,它工作得很好。

Setting -> General -> Date & Time ->自动设置时间

如果它不工作,设置时间自动的mac和iPhone,将工作良好。