xcode 可执行文件的签名无效

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14083435/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:25:27  来源:igfitidea点击:

The executable was signed with invalid entitlements

iphonexcodecode-signingprovisioningprovisioning-profile

提问by Emad-ud-deen

This is the first time trying to test an app I created with LiveCode on an iPad.

这是第一次尝试在 iPad 上测试我使用 LiveCode 创建的应用程序。

I made sure that the IOS Provisioning Portal had the following set up as ad hoc:

我确保 IOS Provisioning Portal 已将以下设置为临时设置:

certificates in Development and Distribution.
Ipad is registered
Apple ID is set up
provisioning in Development and Distribution.

When I try to get the app into Xcode the following error is displayed:

当我尝试将应用程序导入 Xcode 时,显示以下错误:

The executable was signed with invalid entitlements.

How do I get all of this into xCode so my LiveCode app can be tested in the iPad?

我如何将所有这些放入 xCode 以便我的 LiveCode 应用程序可以在 iPad 中进行测试?

回答by Mark

Probably, you used a distribution profile instead of a developer's profile.

您可能使用了分发配置文件而不是开发人员的配置文件。

The creation of the developer certificate and provision profiles are described step by step on Apple's website. I strongly recommend that you take your time to read these steps and to make sure that you follow each step correctly.

Apple 网站上逐步介绍了开发者证书和配置文件的创建过程。我强烈建议您花时间阅读这些步骤,并确保正确执行每个步骤。

Apple's provision portal also has an assistant that helps you to create a developer's provision profile. You need to use this developer's provision profile instead of an ad-hoc prodile if you want to install your app through XCode on your own device(s).

Apple 的配置门户还有一个助手,可帮助您创建开发人员的配置文件。如果您想通过 XCode 在您自己的设备上安装您的应用程序,您需要使用此开发人员的配置文件而不是临时配置文件。

You can use the devloper's profile in LiveCode's Standalone Application Settings window.

您可以在 LiveCode 的独立应用程序设置窗口中使用开发人员的配置文件。

回答by John

This is a ENTITLEMENTS error, not a code sign issue. Entitlements have to do with iCloud. In Xcode 4 this was done on the Summary page at the bottom. In Xcode 5 it is on a new page called capabilities at the top. It will be lit up with a FIX this Issue Flag. Simply select your Devel profile and you're good to go. It does require an AppID set-up with iCloud Checked. If you're not using iCloud simple delete whatever is in the Entitlements field in the build Settings.

这是一个 ENTITLEMENTS 错误,而不是代码符号问题。权利与 iCloud 有关。在 Xcode 4 中,这是在底部的“摘要”页面上完成的。在 Xcode 5 中,它位于顶部称为功能的新页面上。它将用 FIX this Issue Flag 点亮。只需选择您的 Devel 个人资料即可。它确实需要使用 iCloud Checked 设置 AppID。如果您不使用 iCloud,只需删除构建设置中的权利字段中的任何内容。

Although I see the "read the doc" answers often. a.) Most of us do try to read the doc and b.) It rarely contains and useful granular detail needed to code or troubleshoot anything. Cheers

虽然我经常看到“阅读文档”的答案。a.) 我们大多数人确实尝试阅读文档,并且 b.) 它很少包含编码或排除任何故障所需的有用的细粒度细节。干杯

回答by John

Entitlements are also used with the Game Center, Passbook, In-App Purchases and Maps. All are setup in the Target Tab called Capabilities.

权利也用于游戏中心、存折、应用内购买和地图。所有这些都在名为 Capabilities 的 Target Tab 中设置。