码迷,mamicode.com
首页 > 移动开发 > 详细

Setup iOS Development Environment.

时间:2015-07-03 23:28:37      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:ios   apple   xcode   certificat   

Setup iOS Development Environment

Install XCode and check-out source code from SVN

XCode

Please find document from Apple on how to install XCode.

Check-out Source Code

In XCode, Use menu “Source Control” -> “Check-out” to checkout source code from SVN.

One issue I got during this process is: it always time out when check-out. To resolve it: please open a command line and run command

SVN ls https://128.133.152.1:8443/svn/atomsuite/trunk

It will ask you for username and password. After that select “Permanent”.

After perform above, you will be able to check-out code in XCode.

Certificates, App ID and Provisioning profile

We need the following in developer.apple.com

  1. Development and distribution certificate

    Need at least one development certificate and one distribution certificate.

    wildcards can be used.

  2. App ID

    We can set up app ID which represent multiple apps, such as: com.applesoft.*

  3. Provisioning profile

    Need at leas two profiles: 1 for development and 1 for distribution

Certificates and keys in Mac

There are two certificates required on the Mac development machine:

  1. Development certificate

    This will be used to develop and test the app in XCode.

    Following the steps to create development certificate in Apple development page, it will guide you to setup the key and certificate on the machine.

  2. Distribution certificate

    This will be used to make distribution IPA file.

    I download the Distribution certificate from Apple development page and import it.

    Before import the certificate, you need the TechPubs private key. I export from my original development Mac and import into my new machine.

XCode settings

In XCode, select the project and corresponding Target. Then select Build Settings tab and see code signing session. Make sure select “iOS Developer” for Debug and select “iOS Distribution” for Releases. For “Provisioning Profile”, select “Automatic”

版权声明:本文为博主原创文章,未经博主允许不得转载。

Setup iOS Development Environment.

标签:ios   apple   xcode   certificat   

原文地址:http://blog.csdn.net/xmlidea/article/details/46746519

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!