可执行文件使用无效权利进行签名(iPhone 版本)
好吧,我对这些东西不是新手。我知道我在做什么,所以请不要带我了解基础知识。前几天我将 Xcode 更新到最新版本,现在使用自己的分发证书成功构建的每个新项目和过去保存的项目不再成功,并出现以下错误:
可执行文件已使用无效权利进行签名。 应用程序代码签名权利文件中指定的权利与配置配置文件中指定的权利不匹配。
(0xE8008016)。
我所有的应用程序都发生这种情况!我有六个,他们的证书都没有出现过问题,但现在我收到了这个错误!我什至没有进行临时构建,所以我没有使用权利,也没有在代码签名权利框中指定。那个盒子是空白的。我已经尝试了所有方法,这绝对是 Xcode 更新问题。
请帮助这非常令人沮丧。
Ok I'm no rookie to this stuff. I know what I'm doing, so please dont take me through the basics. I updated Xcode to the newest version the other day, and now every new project and saved projects from the past that HAVE succesfully been built using its own distribution certificate are no longer succeeding with the following error:
The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile.
(0xE8008016).
This is happening to ALL my apps! I have six of them, and all of them have never had problems with their certificates, but now I'm getting this error! I'm not even making adhoc builds, so Im not using entitlements, nor is it specified in the code signing entitlements box. That box is blank. Ive tried everything, this is definitely an Xcode issue with updating.
Please help this is extremely frustrating.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这只是一个猜测,但也许尝试从 Xcode 和所有设备中删除所有配置文件,然后从配置门户再次下载它们并在所有设备上重新安装它们?无论如何,当我升级时,我最终还是这样做了。
This is just a shot in the dark, but maybe try deleting all of your provisioning profiles from Xcode and all of your devices, then download them again from the provisioning portal and reinstall them on everything? I ended up doing that anyway when I upgraded.
就我而言,我的目标和项目构建设置中有“代码签名”行。尽管它是空的,但它仍然给我这个错误,直到我在目标中完全删除它并在项目中部分删除它。这就是我所做的:
在 Xcode 4.2 中,我进入 PROJECT\Build Settings 发现“代码签名”行,单击它,然后在 Entitlements 中删除所有行(它们是空的,但仍然存在!),因此 Entitlements 消失了。
我输入“代码签名身份”:不进行代码签名
“调试”:不进行代码签名
“任何iOS SDK”:在这里选择您的规定,我使用自动,工作正常
“发布”:不进行代码签名
“任何 iOS SDK”:与上面相同
然后我转到 TARGETS\Build Settings,找到“代码签名”行并删除其下的所有内容,以便它从目标中消失。
现在我可以在设备上进行构建,而不仅仅是在模拟器中。
希望它对某人有帮助。
乙
In my case I had "code signing" line in my targets and project build settings. Despite it was empty it was still giving me this error, until I deleted it completely in targets and partially in project. So that is what I did:
In Xcode 4.2 I went to my PROJECT\Build Settings found that line "code signing", clicked on it and in Entitlements deleted all lines (they were empty but still there!), so Entitlements disappeared.
I put in "code signing identity":don't code sign
"debug":don't code sign
"Any iOS SDK": choose your provisions here, I used automatic, worked fine
"release":don't code sign
"Any iOS SDK": same as above
Then I went to TARGETS\Build Settings, found the line "code signing" and deleted everything under it so it disappeared from targets.
Now I could build onto the device, not only in simulator.
Hope it helps somebody.
B