IOSDev: Difference between revisions

From Medien Wiki
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
* Register at [http://developer.apple.com/programs/register/ developer.apple.com] and download the iOS SDK including [[Xcode]] (> 4 GB!)
* Register at [http://developer.apple.com/programs/register/ 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 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!
* You don't need to purchase [[Xcode]] from the Mac AppStore. Xcode comes for free with the iOS SDK!


== 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:


# 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)
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)
# accept the invitation you receive
# accept the invitation you receive
# 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
# download the "Summer Term Apps" Provisioning Profile and upload it to your device
# When you compile your project for the device, your app will be signed and can be uploaded to your device
# In your XCode Project, go to Target » YourApp » Show Info » Properties and replace "com.apple" with "de.uni-weimar"
 
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
# In your XCode Project, go to Target YourApp Show Info Properties and replace "com.apple" with “de.uni-weimar”
# When you compile your project for the device, your app will be signed and can be uploaded to your device
# When you compile your project for the device, your app will be signed and can be uploaded to your device


Also see:
Also see:
* [https://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow iOS Development Workflow] (Latest Documentation about the Development Setup from Apple)
* [http://www.raywenderlich.com/2915/ios-code-signing-under-the-hood iOS Code Signing under the hood]
* [http://www.raywenderlich.com/2915/ios-code-signing-under-the-hood iOS Code Signing under the hood]



Latest revision as of 14:32, 1 December 2012

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. Xcode 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.