Setup iOS Development Environment.
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
Development and distribution certificate
Need at least one development certificate and one distribution certificate.
wildcards can be used.
App ID
We can set up app ID which represent multiple apps, such as: com.applesoft.*
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:
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.
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.