简体   繁体   English

iOS代码签名身份

[英]iOS Code Signing Identity

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”条目。

  1. Currently, I specify my Developer or Distribution provisioning profile in all four of the slots under PROJECT and TARGET. 目前,我在PROJECT和TARGET下的所有四个插槽中指定了我的开发人员或分发配置文件。 I believe that each provisioning profile really only needs to be placed in one position. 我相信每个配置文件实际上只需要放在一个位置。
  2. 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. 每当我更新供应配置文件因为它即将到期时,我正在添加其他开发设备,或者我正在添加额外的AdHoc测试设备,这总是很痛苦。 Xcode never allows me to simply choose "iPhone Developer". Xcode从不允许我简单地选择“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. 此外,我必须在导入新的配置文件之前删除旧的配置文件,否则旧的配置文件将继续使用。

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: 所以,这是我的总结问题:

  1. On which line should I specify the provisioning profile? 我应该在哪一行指定配置文件?
  2. What is the best way to import an updated provisioning profile into Xcode? 将更新的配置文件导入Xcode的最佳方法是什么?
1. On which line should I specify the provisioning profile?

Firstly, you are not obliged to set provisioning profiles in the PROJECT section. 首先,您没有义务在PROJECT部分设置配置文件。 I always set them in the TARGET section. 我总是将它们设置在TARGET部分。 Now if your are developing, you should set the: 现在如果你正在开发,你应该设置:

Any iOS SDK     iPhone Developer

Under Debug . Debug And if you are preparing Adhoc, you need to set: 如果你正在准备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. 转到Organizer ,单击Devices选项卡,然后点击底部的New按钮,系统将提示您登录Apple帐户。 Then I think profiles will be imported, click Refresh button to see added profiles. 然后我认为将导入配置文件,单击Refresh按钮以查看添加的配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM