使用 iPhone 4 开发的 Xcode:可执行文件使用无效的权利进行签名。

发布于 2024-10-13 08:20:19 字数 812 浏览 2 评论 0原文

完整的错误信息是:

可执行文件使用无效的权利进行签名。

可执行文件 签署了无效的权利。中指定的权利 您的应用程序的代码签名权利文件与这些不匹配 在您的配置文件中指定。 (0xE8008016)。

我已经花了几个小时来解决此错误消息,但尚未解决。基本上,我已经制作了用于开发的 iPhone-4.0,并通过我在developer.apple.com 上的帐户安装了有效的配置文件。

我们有我们的主应用程序,它使用相同的配置文件进行签名,并且工作正常,但是当我尝试运行 http 中给出的应用程序时://teachyourselfiphone.com/ 书用于学习和测试目的,它根本不起作用。

我已经尝试了以下所有方法,但没有任何作用。

  1. 可执行文件使用无效权利进行签名
  2. http://jomnius.blogspot.com/2010/11/executable-was-signed- with-invalid.html

有人可以帮我摆脱这个吗?

The complete error message is:

The executable was signed with invalid entitlements.

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).

I have already spent a couple of hours resolving this error message but haven't resolved it yet. Basically, I have made my iPhone-4.0 for development and installed the valid provisioning profile from my account on developer.apple.com.

We have our main application, which is signed with the same provisioning profile, and it works fine, but when I try running application given in the http://teachyourselfiphone.com/ book for learning and testing purposes, it just doesn't work.

I have tried all of the following things, but nothing works.

  1. The executable was signed with invalid entitlements
  2. http://jomnius.blogspot.com/2010/11/executable-was-signed-with-invalid.html

Could anyone please help me to get rid of this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

风吹雨成花 2024-10-20 08:20:19

我今天收到这个错误。问题在于项目上的配置文件与目标上的配置文件不同。

转到项目设置并确保配置文件与您当前的应用程序标识符匹配,

然后转到目标设置并确保它是相同的设置。

I was getting this error today. The issue was that the provisioning profile on the project was different to the provisioning profile on the target.

Go to the project settings and make sure the provisioning profile is one that matches your current application identifier

Then go to the target settings and make sure that it is the same setup.

梦言归人 2024-10-20 08:20:19

感谢所有的想法。

由于我有不同的原因,我也想分享它:

买了一台新设备,我从旧设备的备份中恢复了它。 iTunes 和 XCode 也复制了所有同名的配置文件。

我忘记了,即使设备被称为相同的(并且我的配置文件包含此名称),它也是一个不同的设备 ID,并且在您将其也包含在配置配置文件中之前,它无法在此设备上工作,更新,下载并安装在Xcode中。

Thanks for all the ideas.

As I had a different reason, I want to share it as well:

Bought a new device, which I restored from a backup of my old one. Having the same name, iTunes and XCode also copied all the provisiong profiles.

I forgot, that, even if the device is called the same, (and my provisioning profile was including this name) it is a different device id and it does not work on this device until you include this as well in your provisioning profile, update, download and install in Xcode.

檐上三寸雪 2024-10-20 08:20:19

我在 Mac 机器上遇到了这个错误:

应用程序代码签名权利文件中指定的权利与配置配置文件中指定的权利不匹配。 (0xE8008016)。

那一次我检查了 xcode -> 中的identifier目标-> “XXXX”(项目名称)->获取信息。在“属性”选项卡中,我提到了错误的标识符值。更改正确的应用程序标识符值后,它可以正常工作。

I was faced with this error on my Mac machine:

The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016).

That time I checked the identifier in xcode -> Targets -> "XXXX"(project name) -> GetInfo. In the Properties tab I had mentioned the wrong identifier value. After changing it the correct app identifier value it worked properly.

牛↙奶布丁 2024-10-20 08:20:19

我使用的是分发配置文件而不是开发人员配置文件...:P

I was using distribution profile rather than developer profile... :P

猫七 2024-10-20 08:20:19

我也收到此错误消息。我想更新的是我已经在商店中的一款应用程序。在重新下载过期的配置文件数小时后,我运行了“清理所有目标”,这成功了。
祝你的努力好运 - 令人沮丧不是吗?

I was getting this error message too. It was on one of my apps already in store that I wanted to update. I ran 'clean all targets' after hours of re-downloading expired profiles and that did the trick.
Good luck with your efforts - frustrating isn't it?

一向肩并 2024-10-20 08:20:19

我遇到了同样的问题...我想通了...显然有很多事情可能会导致这个问题。这是我的特殊口味,所以你可能会或可能不会发现它有用......这只是另一件事需要检查。我想我会发布解决方案,所以当我明年试图解决这个问题时,我可以找到我的帖子并修复它;)此外,如果其他人看到类似的问题,他们可以找到这个,也许这就是他们所看到的..我的特别问题是我没有抓住所有需要更新的地方。我得到了三分之二,可能很接近,但我们不是在这里玩马蹄铁;)在你嘲笑我之前,请记住后视力是 20/20...而且我老了,不记得我可能想出的东西去年。

有几个方面需要检查以确保您的配置文件已更新。

首先是新的开发者身份证书。确保将其放入您的钥匙串中。我的位于“钥匙串”下 - 在 Mac 上的“钥匙串访问”应用程序中登录。
接下来,您需要在设备上使用新的配置文件。删除过期的身份并通过使用新的开发者身份生成新的身份。通过 XCode4 Organizer 执行此操作。相信管理器中关于找不到有效证书的警告...
最后,这是我错过的,更新库配置文件!再次通过“设备”上方的 XCode4 Organizer,有一个“库”部分,选择“配置文件”删除旧的过期配置文件并添加新的配置文件。

最大的提示是在项目构建设置中 - 代码签名区域告诉您签名匹配的配置文件。我的说“当前匹配......”,然后列出了一个旧的配置文件,该配置文件与我在设备上放置的新配置文件不同。尽管旧的配置文件没有过期,但我相信它是基于昨晚过期的旧开发人员身份。所以我认为问题是 XCode 正在使用较旧的配置文件进行签名,并且设备具有较新的配置文件,因此我得到了上面非常清晰的错误消息;) ...

我花了几个小时寻找这个,希望我可以拯救某人一点时间。我确信明年当我再次搞砸时我会寻找这个。

自我提醒:我告诉过你,明年你会把事情搞砸……而现在就是明年,你正在阅读这篇文章。

同一篇文章位于:https://devforums.apple.com/message/425569

I had this same issue ... I figured this out... There are apparently a lot of things that can happen to cause this issue. This was my particular flavor so you may or may not find this useful...it is just one more thing to check. I thought I would post the solution so when I am trying to figure this out next year I can find my post and fix it ;) Also if anyone else see a similar problem they can find this and maybe it is what they are seeing... My particular problem was I did not catch all the places that need to be updated. I got two out of three which may be close but we're not playing horseshoes here ;) Before you ridicule me just remember hind sight is 20/20...and I'm old and can't remember stuff I probably figured out last year.

There are several areas to check to make sure your provisioning profile is updated.

First there is the new developer identity certificate. Make sure this is put into your keychain. Mine is under Keychains - login in the Key Chain Access app on the Mac.
Next you need the new provisioning profile on the device. Delete out your expired ones and get a new one generated through the use of your new developer identity. Do this through the XCode4 Organizer. Trust the warnings in Organizer that a valid certificate cannot be found...
Finally, this is the one I missed, update the Library Provisioning Profiles! Again through XCode4 Organizer above "DEVICES" there is a "LIBRARY" section select "Provisioning Profiles" delete out your old expired profiles and add your new provisioning profiles.

The big hint was in the project build settings - the code signing area tells you what provisioning profile the signing matches. Mine said "currently matches..." and then listed an older profile that was different from the new one I was putting on the device. Even though that older profile was not expired it was - I believe - based on the old developer identity which had expired last night. So I think the problem was XCode was signing with that older provisioning profile and the device had the newer provisioning profile and so I get the really clear error message above ;) ...

I was looking for this for hours and hope I can save someone a bit of time. I am sure I will be looking for this next year when I screw it up again.

Note to self: I told you that you were going to mess this up next year...and here it is next year and you are reading this post.

This same post is at: https://devforums.apple.com/message/425569

梦断已成空 2024-10-20 08:20:19

当我将手机更新到 iPhone 6 并从 iPhone 4S 备份中恢复时,我遇到了类似的问题。我最终得到了旧手机上的配置文件,必须将其删除。您无法再在 iOS 8 中的“设置”->“常规”->“配置文件”中删除配置文件 - 请在此处查看说明:使用 ios 8 和 Xcode 6.0.1 删除临时配置文件。然后,我必须手动下载团队配置文件并使用与上述相同的说明进行安装。

I had a similar issue when I updated my phone to an iPhone 6 and restored it from my iPhone 4S backup. I wound up with provisioning profiles from my old phone which had to be deleted. You can no longer remove profiles in Settings->General->Profiles in iOS 8 - look here for instructions: Removing provisional profile with ios 8 and Xcode 6.0.1. I had to then manually download the team provisioning profile and install it using the same instructions as above.

多像笑话 2024-10-20 08:20:19

如果您没有更改与证书相关的任何内容(没有替换或更新它们),只需执行 Product ->;干净。它帮助了我好几次。 (Xcode 6.2)

If you didn't change anything related to certificates (didn't replace or update them) just do a Product -> Clean. It helped me several times. (Xcode 6.2)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文