Xcode 3.1.4 缺少代码签名权利选项?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1371499/
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-14 18:47:39  来源:igfitidea点击:

Xcode 3.1.4 missing Code Signing Entitlements Options?

iphonexcode

提问by user82383

I am on Xcode 3.1.4 and hitting the dreaded ""the executable was signed with invalid entitlements." error.

我在 Xcode 3.1.4 上遇到了可怕的“”可执行文件的签名无效。”错误。

I am trying to add Entitlement.plist in the BUILD option but I cannot find where to put it.

我正在尝试在 BUILD 选项中添加 Entitlement.plist,但找不到放置它的位置。

This option used to exist above the "Code Signing Identity". I think it was called "Code Signing Entitlement" or something.

此选项曾经存在于“代码签名标识”之上。我认为它被称为“代码签名权利”之类的。

Is this missing in your version of xcode 3.1.4 ?

您的 xcode 3.1.4 版本中是否缺少此内容?

回答by user82383

SOLVED.

解决了。

Inside the Target Build Settings->Architecture, Make sure your Base SDK is set to Device and not Simulator.

在 Target Build Settings->Architecture 中,确保您的 Base SDK 设置为 Device 而不是 Simulator。

回答by Daniel Saidi

I could not find the Code Signing Entitlements option in In XCode 4 either...but after staring empty at the screen for about two hours, I did.

我在 XCode 4 中也找不到代码签名权利选项......但是在盯着屏幕看了大约两个小时之后,我找到了。

If you highlight your project, then select the target of interest and then finally switch from "Basic" to "All", you will find it.

如果您突出显示您的项目,然后选择感兴趣的目标,然后最后从“基本”切换到“全部”,您就会找到它。

回答by Gav

Nice one, solved my problem too.

不错的,也解决了我的问题。

Its in the project menu at the bottom "edit active target", or press ALT+CMD+E

它在项目菜单底部的“编辑活动目标”中,或按 ALT+CMD+E

回答by user270200

I had the same problem and my base SDK was set to "iPhone Device 2.0 (missing)". Changing it to "iPhone Device 2.2.1" fixed the above, and a number of other odd things that were happening.

我遇到了同样的问题,我的基本 SDK 设置为“iPhone Device 2.0(缺少)”。将其更改为“iPhone Device 2.2.1”修复了上述问题,以及其他一些正在发生的奇怪事情。

Thanks user82383!

感谢用户82383!