可怕的“可执行文件已使用无效权利进行签名”

发布于 2024-09-14 07:45:10 字数 426 浏览 2 评论 0原文

我遇到“可执行文件已使用无效权利签名”错误。仅当我尝试将 get-task-allow 的 Entitlements.plist 设置为 TRUE 时,才会发生该错误。尝试这样做的原因是因为我试图让设备令牌显示在控制台中,稍后使用设备令牌进行推送通知。

不过,如果我将 get-task-allow 设置为 false,该应用程序将在 iPad 中构建。

目前使用 XCode SDK 3.2.3、iPad iOS 3.2.1

我已经尝试了从 Mac 删除所有密钥、证书的所有方法。撤销 iPhone 配置门户中的证书。删除 iPad 中的配置文件。然后把一切都重来一遍。

我还检查了项目“应用程序”信息,在代码签名身份下,它设置为 iPhone Distribution:“名称”。 还检查了目标“应用程序”信息中的相同内容。然后完成了干净的构建并运行,但仍然出现此错误。

i have the "The executable was signed with invalid entitlements" error. The error only occurs when im trying to set TRUE to the Entitlements.plist of get-task-allow. The reason for trying to do this is because im trying to get the device token to be shown in the console, using the device token later for push notifications.

Though, if i set false to get-task-allow, the app would build in the iPad.

Currently using XCode SDK 3.2.3, iPad iOS 3.2.1

I Have tried everything from removing all the keys,certificates from the Mac. Revoking the certificates in the iPhone Provisioning Portal. Removing the provisioning profiles in the iPad. Then redoing everything all over again.

I also have checked in the Project "Application" Info that under the Code Signing Identity , it is set to iPhone Distribution : "Name".
Also have checked in the Target "Application" Info for the same thing. Then done a clean build and run but still having this error.

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

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

发布评论

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

评论(2

北城挽邺 2024-09-21 07:45:10

模拟器无法为您获取设备令牌(以防万一您不知道)。

在设备上,如果您已越狱,我将无法获得令牌。您需要拥有一部未受污染的手机。

您收到的错误是因为您选择了错误的证书。

仔细遵循这些说明
http ://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/

您的推送通知证书也可能已过期,请检查那也是如此。

The simulator cannot get you a device token, (just in case you didn't know).

On the device, if you have jailbroken it, I am not able to get a token. You need to have an untainted phone.

The error you are getting is because you a selecting the wrong certificate.

Follow these instructions carefully
http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/

Your certificate could also have expired for push notifications, check that as well.

栀子花开つ 2024-09-21 07:45:10

我解决了,XCode的组织者窗口>窗口>组织者 。在“设备”选项卡中,当您单击已连接的设备时,右侧会出现一个控制台窗格。然后,如果不允许“get-task-allow”,您可以使用它来查找您的设备令牌。

i solved it, The organiser window of XCode > Window > Organiser . In the Devices tab, when you click on a device that is connected, there is a console pane on the right. you can then use that to find out your device token if "get-task-allow" is not allowed.

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