在 xcode 目标属性中看不到代码签名权利

发布于 2024-07-26 07:24:15 字数 343 浏览 6 评论 0原文

我正在尝试为我的应用程序构建一个临时版本,我正在按照苹果文档中的说明进行操作

选择目标并打开构建 设置检查器。 在《守则》中 签署权利的构建设置, 输入新的文件名 Entitlements.plist 文件包括 扩大。 无需指定 一条路径,除非你已经把 Entitlements.plist 文件某处 除了顶层之外 项目。

但我没有看到该部分,我错过了什么?alt text

I am trying to build an adhoc build for my app , I am following the instructions on the apple's documentation which says

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.

But i dont see that section , what am i missing ?alt text

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

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

发布评论

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

评论(12

银河中√捞星星 2024-08-02 07:24:15

确保分发目标配置的“Base SDK”属性设置为“设备”而不是“模拟器”。 我遇到了同样的问题,这对我有用。

在这里找到了答案:
http://discussions.apple.com/thread.jspa?threadID=1896569

Make sure your "Base SDK" property for your Distribution target configuration is set to Device and not to Simulator. I had the same problem, and this worked for me.

Found the answer here:
http://discussions.apple.com/thread.jspa?threadID=1896569

情绪 2024-08-02 07:24:15

您必须创建文件 Entitlements.plist 并将其添加到构建中的资源文件夹中。

添加后,

您需要双击“代码签名”部分中的第一个字段并输入 Entitlements.plist

我面前没有我的 Mac,我希望这足以开始。 如果您尝试分发构建版本,则需要有一个分发渠道。

编辑评论
您需要双击第一个字段右侧的字段,然后输入单词 Entitlements.plist 关闭窗口后,它将出现在列表中

you must create the file Entitlements.plist and add it to your resource folder in your build.

once it is added,

you need to double click on the first field in the Code Signing section and type in Entitlements.plist

I don't have my mac in front of me I hope this is enough to get started. If you are trying to make a distribution of the build you need to have a distribution channel.

Edit for the Comment
you need to double click the field to the right of the first field and type the word Entitlements.plist once you close out the window it will appear in the list

厌倦 2024-08-02 07:24:15

我遇到了同样的问题,但在同一个窗口中,我将 Base SDK 从 iphone 模拟器更改为 iphone 设备,并且出现了权利。

I had the same problem but in the same window I changed Base SDK from iphone simulator to iphone device and Entitlements appeared.

南渊 2024-08-02 07:24:15

我遇到了同样的问题,并且能够通过打开项目获取信息(转到项目 -> 编辑项目设置或右键单击项目)并在“常规”选项卡中确保“所有配置的基础 SDK”来解决它底部设置为设备而不是模拟器。

I had the same problem and was able to solve it by opening the PROJECT get info (go to Project -> Edit Project Settings or right click on the project) and in the General tab make sure the "Base SDK for All Configurations" at the bottom is set to Device and not Simulator.

情何以堪。 2024-08-02 07:24:15

Entitlements.plist 文件的路径,

您应该需要设置我在项目中设置的

请参见下面的屏幕截图。 在此处输入图像描述

You should need to set the path of the Entitlements.plist file

I have set in the my project see below screen shot.

enter image description here

攀登最高峰 2024-08-02 07:24:15

感谢您的回复。 最后我放弃了并创建了一个新项目并将我的所有文件复制到其中。 新项目中有该部分。 我不确定该项目是如何进入这种状态的。 上周向苹果支持人员发送了电子邮件,尚未收到他们的回复,一旦收到回复,我将更新该帖子。

Thanks for the responses . In the end i just gave up and created a new project and copied all my files into it . The new project has that section in there . I am not sure how that project got into that state . Emailed Apple support last week , yet to hear back from them , will update the post once I hear back from there.

世态炎凉 2024-08-02 07:24:15

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

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

夜清冷一曲。 2024-08-02 07:24:15

如果您位于项目设置的“基本”选项卡上,则在 Xcode 4 中也可能会发生这种情况。 要查看代码签名权利,您需要选择“全部”选项卡。

This can also happen in Xcode 4 if you are on the Basic tab in your project settings. To see Code Signing Entitlements you need to have the All tab selected.

逆流 2024-08-02 07:24:15

您需要先添加它,点击左下角的齿轮。 如果不行的话我就去问苹果了 如果在他们的文档中,他们应该非常乐意消除任何混乱。

You need to add it first, click the gear on the lower left. If that doesn't work, I would go ask Apple. If it's in their documentation they should be more than happy to clear up any confusion.

触ぅ动初心 2024-08-02 07:24:15

我之前在目标信息的构建选项卡中看到过奇怪的事情发生,好像它在配置之间变得混乱。 我采取了将操作简化到最低限度的方法,结果似乎自行解决了。 请注意,这是在长时间轮班后的午夜,可能是我感到困惑。 我犹豫是否要提及它,但只需要几秒钟的时间来尝试,您也许可以让我放心

从主 Xcode 窗口工具栏
将 Active SDK 设置为后面有(项目设置)的“设备”项
将活动配置设置为相关的配置(此处为分布)

在目标 -> GetInfo->构建
选择“主动(分布)”配置

I've seen strange things happen in the build tab of the target info before, as if it becomes confused between configurations. I took the approach of simplifying the operation to the bare minimum and it seemed to sort itself out. Mind you, this was in the midnight hours after a long shift and it may have been me that was getting confused. I hesitate to mention it but it will only take a few seconds to try and you may be able to put my mind at rest

From the main Xcode window toolbar
Set the Active SDK to the "Device" item that has (project settings) after it
Set the Active Configuration to the one concerned with (here distribution)

In Target -> GetInfo->Build
Select configuration of "active (distribution)"

我不会写诗 2024-08-02 07:24:15

是的,我遇到了同样的问题,迁移到新的 SDK,我放弃了 2.1 支持,但它仍然是项目中的基础 SDK。 通过更改基础 sdk,我的证书现在再次出现!

Yes, I had the same issue, moving to a new SDK, I've dropeed 2.1 support but it was still the base SDK in the project. By changing the base sdk, my certificates now appears again!

几味少女 2024-08-02 07:24:15

你运行的是哪个版本的 xcode? 这是我的屏幕截图,清楚地显示了“代码签名权利”字段:

http://www.freeimagehosting.net/uploads/814ef82625.png

What version of xcode are you running? Here's a screenshot of mine that clearly show the Code Signing Entitlements field:

http://www.freeimagehosting.net/uploads/814ef82625.png

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