构建 iPhone 应用程序报告“可执行文件已使用无效权利签名”
我正在尝试在我的设备上安装我的 iPhone 应用程序进行测试,每当我尝试构建它时,我都会得到:
可执行文件使用无效权利进行签名
您中指定的权利 应用程序的代码签名 权利与这些不符 在您的配置中指定 简介。
现在我尝试添加 Entitlements.plist
文件并检查和取消检查 get-task-allow。我已在项目下的“代码签名权利”下添加了文件名,然后在目标下添加了文件名,“两者”、“两者都没有”等。我已删除并重新创建了每个应用程序 ID、配置文件和证书。这些似乎都是有效的。这不是一个临时发行版(它是开发版),也不是越狱手机。
配置文件中的何处指定了代码签名权利?
I'm trying to install my iPhone application on my device for testing and whenever I try to build it I get:
The executable was signed with invalid entitlements
The entitlements specificed in your
application's Code Signing
Entitlements do not match those
specified in your provisioning
profile.
Now I've tried adding an Entitlements.plist
file and both checking and unchecking get-task-allow. I've added the file name under Code Signing Entitlements under the project and then under the target, both, neither, etc. I've deleted and re-created every application id, provisioning profile, and certificate. Those all seem valid. This is not an ad-hoc distribution (it's development) and it's not a jailbroken phone.
Where in the provisioning profile are any Code Signing Entitlements specified?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过将项目复制到不同的位置,创建一个新项目,然后将以前的项目文件重新复制到新项目中来解决这个问题。
I solved this issue by copying my project to a different spot, creating a new project and then re-copying the previous project files into the new project.
我正确遵循了 Apple 配置门户中给出的所有步骤,以使我的应用程序在 iPhone 上运行。我还重新启动了我的机器,并创建了一个新项目来测试。这对我不起作用。我每次都遇到同样的错误。
然后我重新安装了 Xcode。然后它对我有用。我成功运行了我的应用程序
在我的 iPhone 上...
I followed all the steps given in the Apple provisioning portal properly to make my application working on iPhone. I also rebooted my machine, and created a new project to test. It was not working for me. I was getting the same error every time.
Then I re-installed Xcode. Then it worked for me. I successfully ran my application
on my iPhone...