可执行文件的签名无效 [英] The executable was signed with invalid entitlements
问题描述
我的 iPhone 上的临时分发有问题.我用 SDK 3.0 开发了一个应用程序.我有开发者许可证.我在我的项目中添加了证书和配置文件.所以,没问题.
I am having a problem with ad-hoc distribution on my iPhone. I have developed an application with SDK 3.0. I have a developer's license. I have added certificates and provisioning profiles in my project. So, no problem with that.
但是,当我尝试在我的 iPhone 上安装该应用程序时,它会编译项目,然后在管理器窗口中显示错误:"The executable was signed with invalid entitlements"
.我错过了什么吗?我已经从 2.2.1 升级了我的 iPhone,并从 Apple 下载了最新的 SDK.
But, when I try to install the app on my iPhone, it compiles the project and then displays the error: "The executable was signed with invalid entitlements"
in the Organizer window. Am I missing something? I have upgraded my iPhone from 2.2.1 and have downloaded latest SDK from Apple.
请帮我解决这个问题.
推荐答案
'Portal Program' 中有很好的说明.如果您登录
There are pretty good instructions in the 'Portal Program'. If you log into
http://developer.apple.com/iphone
然后单击左侧的分发,然后单击
Then click Distribution on the left, and click the
为临时分发创建和下载分发配置文件
Creating and Downloading a Distribution Provisioning Profile for Ad Hoc Distribution
链接在底部.
这里是关键点:
对于临时分发,请完成以下操作:
For Ad Hoc Distribution, complete the following:
- 在文件菜单中,选择新建文件 -> iPhone OS -> 代码签名 -> 权利.将文件命名为Entitlements.plist",然后单击完成".这会在项目中创建默认权利文件的副本.
- 选择新的 Entilments.plist 文件并取消选中get-task-allow"属性.保存 Entitlements.plist 文件.(在 Xcode 4 中,get-task-allow 被称为可以调试")
- 选择目标并打开构建设置检查器.在代码签名权利"构建设置中,输入新的 Entitlements.plist 文件的文件名,包括扩展名.无需指定路径,除非您已将 Entitlements.plist 文件放在项目顶层以外的其他位置.
- 点击构建".(注意:您的二进制文件必须包含一个 57x57 像素的扁平方形图像图标.该图标显示在 iPhone 或 iPod touch 主屏幕上.)
这篇关于可执行文件的签名无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!