简体   繁体   English

iOS XCode和代码签名

[英]iOS XCode & Code Signing

I am currently about to start work on an iOS app for somebody but they have there own Apple Developer account which they would like to us. 我目前正准备开始为某人开发iOS应用程序,但他们有自己的Apple开发者帐户,他们希望我们这样做。 How do I go about setting my MAC up so that I can use their account to build, develop and test their app on my Devices? 如何设置我的MAC以便我可以使用他们的帐户在我的设备上构建,开发和测试他们的应用程序?

I am assuming that I will need to create a separate user account on my MAC. 我假设我需要在我的MAC上创建一个单独的用户帐户。 I have done this but when I try to install the certificates that they have created I get errors such as "Valid signing identity not found". 我已经这样做了,但是当我尝试安装他们创建的证书时,我会收到诸如“找不到有效签名身份”之类的错误。

Why could Apple not make this process simple, I am always having to refer back to the documentation and still get confused just to start creating a new app! 为什么Apple不能简化这个过程,我总是不得不回顾文档,但仍然对开始创建新应用程序感到困惑!

No, you won't need to create separate account. 不,您不需要创建单独的帐户。 Xcode provide the facility to use several provisioning profile and certificate at the same time. Xcode提供了同时使用多个配置文件和证书的功能。

For more information check this thread - Multiple Certificates/Provisioning Profiles in one Xcode organizer? 有关更多信息,请检查此线程 - 一个Xcode管理器中的多个证书/配置文件?

You do not have to create a new user account on your Mac for this, but I know some developers prefer to have separate accounts when they are working with more than one developer account, for ease of development & distribution provisioning profiles. 您不必在Mac上为此创建新的用户帐户,但我知道有些开发人员在使用多个开发人员帐户时更喜欢使用单独的帐户,以便于开发和分发配置文件。

If your client adds you (by Apple ID --> email address) as a team member to their account (assuming their account belongs to a company and not an individual) then you can start the development process by requesting and later receiving a signed development certificate. 如果您的客户将您(通过Apple ID - >电子邮件地址)作为团队成员添加到他们的帐户(假设他们的帐户属于公司而不是个人),那么您可以通过请求并稍后接收已签名的开发来启动开发流程证书。 You'll then also need the required provisioning profile(s) to develop/distribute builds of the app. 然后,您还需要所需的配置文件来开发/分发应用程序的版本。

First of all you don't need to create new account on your Mac to develop iOS application. 首先,您不需要在Mac上创建新帐户来开发iOS应用程序。 In Xcode 4 it become very easy to start developing and signing application. 在Xcode 4中,开始开发和签署应用程序变得非常容易。 All you need to do is go to Organizer (most right button on Xcode toolbar). 您需要做的就是去管理器(Xcode工具栏上最右边的按钮)。 In Provisioning Profiles section you can see Refresh button on the botoom of the screen. 在Provisioning Profiles部分中,您可以在屏幕的botoom上看到Refresh按钮。 When you click it ask you about your developer account information such as account name and password. 当您单击它时,询问您的开发者帐户信息,例如帐户名和密码。 Then it tries to install all profiles and certificates to your Mac automatically. 然后它会尝试自动将所有配置文件和证书安装到Mac。 Then you could select your profile and sign your app. 然后,您可以选择自己的个人资料并在应用中签名 If automatically install fails, check yourself that you download all you need for this. 如果自动安装失败,请检查您是否已下载所需的全部内容。

  1. Create keys on your mac and submit to Apple. 在Mac上创建密钥并提交给Apple。
  2. Download your certificate and WWDR certificate. 下载您的证书和WWDR证书。 Two!!!! 二!!!!
  3. Add your device to the devices section and create Development certificate (Distribution as well ). 将您的设备添加到设备部分并创建开发证书(分发也是如此)。 Download it manually or via refresh in Xcode Organizer. 手动下载或通过Xcode Organizer中的刷新下载。

Hope it helps. 希望能帮助到你。 Sergey! 谢尔盖!

Once you have your Apple Developer Account Credentials, You can follow gist I have created: 获得Apple开发者帐户凭据后,您可以按照我创建的要点:

Apple's Code Signing Process Apple的代码签名流程

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

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