IOS build setup

From ETC Public Wiki
Jump to: navigation, search

iOS project setup

For using Unity with iOS, you need some extra work to setup the project and building environment. Some of the descriptions come from Unity Documentation and Unity Answer.

  1. First you need a Mac.
  2. Upgrade to the latest version of Mac OS and iTunes.
  3. Download latest iPhone SDK from iOS Dev Center, and install it.
  4. Install Unity, and activate it with an iOS license.
  5. Get Apple Developer ID. (For ETC student, email ETC support to get invitation)
  6. Go to iOS Dev Center -> Provisioning Portal -> Certificates to get certificate, click on "HowTo" tab for instructions.
  7. Create your app ID. (For ETC student, email ETC support to get it created)
  8. Add your devices' UDID. (For ETC student, email ETC support to get them added)
  9. Create a provisioning profile using your certificate key and App ID and all the devices. (For ETC student, email ETC support)
  10. Go to iOS Dev Center -> Provisioning Portal -> Provisioning, download your profile.
  11. Connect you device to Mac, open XCode -> Organizer, find your device and add the profile you downloaded from last step to device's provisioning profile.
  12. In Unity, go to Edit -> Player Settings, input your app ID (step 7) without the unique string of letters and numbers Apple generates.
  13. Click Build and Run, Unity will build a XCode project, and it will launch automatically to compile and run your game on iOS device.