可执行文件使用无效的权利进行签名 [英] The executable was signed with invalid entitlements

查看:248
本文介绍了可执行文件使用无效的权利进行签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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上安装应用程序时,它会编译项目然后显示错误:可执行文件在管理器窗口中使用无效的权利进行了签名。我错过了什么吗?我已经从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.

请帮我解决这个问题。

推荐答案

门户计划中有很好的说明。如果您登录

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

底部的链接。

这是关键位:

对于Ad Hoc Distribution,请完成以下操作:

For Ad Hoc Distribution, complete the following:


  • 在文件菜单中,选择新文件 - > iPhone OS - >代码签名 - >权利。
    将文件命名为Entitlements.plist并单击完成。这将在项目中创建默认权利文件的副本。

  • 选择新的Entitlments.plist文件,取消选中get-task-allow属性。保存Entitlements.plist文件。(在Xcode 4中,get-task-allow被称为可以调试)

  • 选择目标在代码签名权限构建设置中,输入新的Entitlements.plist文件的文件名,包括扩展名。除非已将Entitlements.plist文件放在某处,否则无需指定路径

  • 点击构建。(注意:您的二进制文件必须包含一个57x57像素的扁平方形图标。此图标显示在iPhone或iPod touch主屏幕。)

  • In the File Menu, select New File -> iPhone OS -> Code Signing -> Entitlements. Name the file "Entitlements.plist" and click ‘Finish’. This creates a copy of the default entitlements file within the project.
  • Select the new Entitlments.plist file and uncheck the "get-task-allow" property. Save the Entitlements.plist file. (in Xcode 4, get-task-allow is called "Can be debugged" )
  • Select the Target and open the Build settings inspector. In the ‘Code Signing Entitlements’ build setting, type in the filename of the new Entitlements.plist file including the extension. There is no need to specify a path unless you have put the Entitlements.plist file somewhere other than the top level of the project.
  • Click ‘Build’. (Note: Your binary must contain a flattened, square-image icon that is 57x57 pixels. This icon is displayed on the iPhone or iPod touch home screen.)

这篇关于可执行文件使用无效的权利进行签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆