xcode iOS 代码签名身份
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15696322/
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
iOS Code Signing Identity
提问by David Manpearl
My Xcode 4.6 iOS project has "PROJECT" and "TARGETS" sections, each of which has a "Debug" and "Release" area under "Code Signing Identity" with an "Any iOS SDK" entry.
我的 Xcode 4.6 iOS 项目有“PROJECT”和“TARGETS”部分,每个部分在“Code Signing Identity”下都有一个“Debug”和“Release”区域,带有“Any iOS SDK”条目。
- Currently, I specify my Developer or Distribution provisioning profile in all four of the slots under PROJECT and TARGET. I believe that each provisioning profile really only needs to be placed in one position.
- Whenever I update a provisioning profile because it is expiring, I am adding additional development devices, or I am adding additional AdHoc test devices, it is always painful. Xcode never allows me to simply choose "iPhone Developer". I always have to navigate to the correct provisioning profile by name. Furthermore, I have to delete the old provisioning profiles before I import the new ones, otherwise the old ones will continue to get used.
- 目前,我在 PROJECT 和 TARGET 下的所有四个插槽中指定了我的 Developer 或 Distribution 配置文件。我相信每个配置文件实际上只需要放在一个位置。
- 每当我因为即将到期而更新配置文件、添加额外的开发设备或添加额外的 AdHoc 测试设备时,总是很痛苦。Xcode 从不允许我简单地选择“iPhone Developer”。我总是必须按名称导航到正确的配置文件。此外,在导入新配置文件之前,我必须删除旧的配置文件,否则旧的配置文件将继续被使用。
It all looks something like this:
这一切看起来像这样:
PROJECT
myProject
Code Signing
Code Signing Identity
Debug iPhone Developer
Any iOS SDK iPhone Developer
Release iPhone Distribution
Any iOS SDK iPhone Distribution
TARGET
myTarget
Code Signing
Debug iPhone Developer
Any iOS SDK iPhone Developer
Release iPhone Distribution
Any iOS SDK iPhone Distribution
So, here are my summarized questions:
所以,这里是我总结的问题:
- On which line should I specify the provisioning profile?
- What is the best way to import an updated provisioning profile into Xcode?
- 我应该在哪一行指定配置文件?
- 将更新的配置文件导入 Xcode 的最佳方法是什么?
回答by Malloc
1. On which line should I specify the provisioning profile?
Firstly, you are not obliged to set provisioning profiles in the PROJECT
section. I always set them in the TARGET
section. Now if your are developing, you should set the:
首先,您没有义务在该PROJECT
部分设置配置文件。我总是把它们放在这个TARGET
部分。现在如果你正在开发,你应该设置:
Any iOS SDK iPhone Developer
Under Debug
. And if you are preparing Adhoc, you need to set:
下Debug
。而如果你是准备 Adhoc,你需要设置:
Any iOS SDK iPhone Distribution
Under Release
.
下Release
。
2 .What is the best way to import an updated provisioning profile into Xcode?
Go to Organizer
, click Devices
tab, then hit the New
button at the bottom, you will be prompted to sign in your Apple account. Then I think profiles will be imported, click Refresh
button to see added profiles.
转到Organizer
,单击Devices
选项卡,然后单击New
底部的按钮,系统将提示您登录 Apple 帐户。然后我认为将导入配置文件,单击Refresh
按钮查看添加的配置文件。