在 xcode 目标属性中看不到代码签名权利
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1116963/
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
Don't see Code Signing Entitlements in xcode target properties
提问by Surya
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.
选择目标并打开构建设置检查器。在“代码签名权利”构建设置中,输入新的 Entitlements.plist 文件的文件名,包括扩展名。除非您将 Entitlements.plist 文件放在项目顶层以外的其他位置,否则无需指定路径。
But i dont see that section , what am i missing ?
但我没有看到那个部分,我错过了什么?
采纳答案by Surya
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.
感谢您的答复。最后我只是放弃并创建了一个新项目并将我的所有文件复制到其中。新项目在那里有那个部分。我不确定那个项目是如何进入那种状态的。上周通过电子邮件发送给 Apple 支持,但尚未收到他们的回复,一旦我收到回复,我将更新帖子。
回答by Ian
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.
确保您的分发目标配置的“基本 SDK”属性设置为设备而不是模拟器。我有同样的问题,这对我有用。
Found the answer here: http://discussions.apple.com/thread.jspa?threadID=1896569
在这里找到答案:http: //discussions.apple.com/thread.jspa?threadID=1896569
回答by JuniorFlip
you must create the file Entitlements.plist and add it to your resource folder in your build.
您必须创建文件 Entitlements.plist 并将其添加到构建中的资源文件夹中。
once it is added,
一旦添加,
you need to double click on the first field in the Code Signing section and type in Entitlements.plist
您需要双击代码签名部分的第一个字段并输入 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.
我面前没有我的 mac 我希望这足以开始。如果您尝试分发构建版本,则需要有一个分发渠道。
Edit for the Commentyou 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
编辑您需要双击第一个字段右侧的字段并在关闭窗口后输入单词 Entitlements.plist,它将出现在列表中
回答by JuniorFlip
I had the same problem but in the same window I changed Base SDK from iphone simulator to iphone device and Entitlements appeared.
我遇到了同样的问题,但在同一个窗口中,我将 Base SDK 从 iphone 模拟器更改为 iphone 设备,并且出现了权利。
回答by mdonnahoo
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.
我遇到了同样的问题,并且能够通过打开 PROJECT 获取信息(转到项目 -> 编辑项目设置或右键单击项目)来解决它,并在“常规”选项卡中确保“所有配置的基础 SDK”位于底部设置为设备而不是模拟器。
回答by Crazy Developer
You should need to set the path of the Entitlements.plist file
您应该需要设置 Entitlements.plist 文件的路径
I have set in the my project see below screen shot.
我在我的项目中设置了如下屏幕截图。
回答by melakit
Inside the Target Build Settings->Architecture, Make sure your Base SDKis set to Device and not Simulator.
在 Target Build Settings->Architecture 中,确保您的Base SDK设置为 Device 而不是 Simulator。
回答by jj0b
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.
如果您在项目设置中的“基本”选项卡上,这也可能发生在 Xcode 4 中。要查看代码签名权利,您需要选择所有选项卡。
回答by tomsoft
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!
是的,我遇到了同样的问题,转移到新的 SDK,我已经放弃了 2.1 支持,但它仍然是项目中的基本 SDK。通过更改基础 sdk,我的证书现在再次出现!
回答by Sneakyness
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.
需要先添加,点击左下角的齿轮。如果那不起作用,我会去问苹果。如果它在他们的文档中,他们应该很乐意澄清任何混淆。