IOSDev: Difference between revisions

From Medien Wiki
mNo edit summary
(Updated for latest workflow)
Line 5: Line 5:


== Xcode Setup ==
== Xcode Setup ==
In order to sign your apps, so that they can be tested on your (physical) devices and not only in the simulator, follow these steps:
 
To test your apps on your (physical) iOS devices and not only in the simulator, you have to compile and sign your applications. You need to install certain certificates and provisioning profiles for this process.
 
With the latest Xcode3 and Xcode4 releases, compiling signed apps became a lot easier. If the IDE is set up right and Developer Certificates installed correctly, Xcode manages all required profiles automatically. You don't even have to set the App Identifier! Just follow the first steps (1 to 4) and you should be able to run your app on your iOS device:


# send your Name, E-mail and UDID to Michael (the UDID can be found under "ID" in Xcode » Windows » Organizer » Devices, if the device is connected - alternatively you can find it in iTunes, Overview page of your connected device, click on "Serial Number" and it shows the UDID - though you cannot copy and paste it)
# send your Name, E-mail and UDID to Michael (the UDID can be found under "ID" in Xcode » Windows » Organizer » Devices, if the device is connected - alternatively you can find it in iTunes, Overview page of your connected device, click on "Serial Number" and it shows the UDID - though you cannot copy and paste it)
Line 11: Line 14:
# login at the [http://developer.apple.com/iphone/manage/overview/index.action Apple Developer Program Center] and follow the "How To" under "Certificates" to generate your certificate and upload the generated .cert file
# login at the [http://developer.apple.com/iphone/manage/overview/index.action Apple Developer Program Center] and follow the "How To" under "Certificates" to generate your certificate and upload the generated .cert file
# once your certificate has been accepted, download the WWDR Intermediate Developer Certificate and add it to your keychain
# once your certificate has been accepted, download the WWDR Intermediate Developer Certificate and add it to your keychain
# When you compile your project for the device, your app will be signed and can be uploaded to your device
For older Xcode versions you also have to follow these additional steps:
# download the "Summer Term Apps" Provisioning Profile and upload it to your device
# download the "Summer Term Apps" Provisioning Profile and upload it to your device
# In your XCode Project, go to Target » YourApp » Show Info » Properties and replace "com.apple" with "de.uni-weimar"
# In your XCode Project, go to Target » YourApp » Show Info » Properties and replace "com.apple" with "de.uni-weimar"

Revision as of 11:14, 11 June 2011

Get the iPhone SDK

  • Register at developer.apple.com and download the iOS SDK including Xcode (> 4 GB!)
  • You don't need to register a full account, thus you do NOT need to pay the 99 $ / year!. The free account is fine
  • You don't need to purchase Xcode from the Mac AppStore, but you may if you like (Xcode 4.x currently costs 3,99 € for developers with free developer accounts, included for paid accounts). Xcode 3.x comes for free with the iOS SDK!

Xcode Setup

To test your apps on your (physical) iOS devices and not only in the simulator, you have to compile and sign your applications. You need to install certain certificates and provisioning profiles for this process.

With the latest Xcode3 and Xcode4 releases, compiling signed apps became a lot easier. If the IDE is set up right and Developer Certificates installed correctly, Xcode manages all required profiles automatically. You don't even have to set the App Identifier! Just follow the first steps (1 to 4) and you should be able to run your app on your iOS device:

  1. send your Name, E-mail and UDID to Michael (the UDID can be found under "ID" in Xcode » Windows » Organizer » Devices, if the device is connected - alternatively you can find it in iTunes, Overview page of your connected device, click on "Serial Number" and it shows the UDID - though you cannot copy and paste it)
  2. accept the invitation you receive
  3. login at the Apple Developer Program Center and follow the "How To" under "Certificates" to generate your certificate and upload the generated .cert file
  4. once your certificate has been accepted, download the WWDR Intermediate Developer Certificate and add it to your keychain
  5. When you compile your project for the device, your app will be signed and can be uploaded to your device

For older Xcode versions you also have to follow these additional steps:

  1. download the "Summer Term Apps" Provisioning Profile and upload it to your device
  2. In your XCode Project, go to Target » YourApp » Show Info » Properties and replace "com.apple" with "de.uni-weimar"
  3. When you compile your project for the device, your app will be signed and can be uploaded to your device

Also see:

Submitting to the App Store

see:



Diese Seite ist Teil des Werkmoduls iOS Development von Michael Markert für Interface Design / Fakultät Medien an der Bauhaus-Universität Weimar.