View
2.509
Download
4
Category
Preview:
DESCRIPTION
Managing teams and deploying apps in iPhone University Developer program
Citation preview
iPhone Developer University Program
Jussi Pohjolainen
Tampere University of Applied Sciences
iPhone Licensing
• SDK is free download from Apple • If you want to release soAware, you must enroll to iPhone Developer Program
• Programs – Standard Program, $99 per year
• DistribuFng apps into app store – Enterprise Program, $299 per year
• DistribuFng apps inside the company – University Program, free
• DistribuFng apps between students and teachers • App Store distribuFon not available
Developer Programs
University Program
• To qualified, degree granFng, higher educaFon insFtuFons. – Apple reserves the right to determine eligibility
• No beta versions of the SDK (new SDKs, iPad..) • iPhone SDK can be installed on Apple computers in computer classes
• 200 iPhones can be registered on one semester
GeQng Started, Se#ng up the Team
• Login to Program Portal • Set up your team – Team member: students
– Team admins: teachers – Team agent: original enrollee accepted into iPhone Developer Program
• Send InvitaFons one by one or using a texTile containing e-‐mail addresses
Program Portal, SeQng the Team
iPhone Development CerFficate
• All iPhone apps must be signed by a valid cerFficate before they can run on a Apple Device
• To sign an app for tesFng purposes, team member (student) need to to obtain development cer9ficate
• CerFficaFon is restricted to app development only and is valid for a limited amount of Fme.
Obtaining the CerFficate
• You must request the cer*ficate 1. Generate CerFficate
Signing Request (CSR) • The CSR file is generated using Keychain Access ApplicaFon
2. AAer creaFng the file, you submit the file for approval
3. When request is approved, you download and install the cerFficate
1. GeneraFng CSR
1. GeneraFng CSR
1. GeneraFng CSR
1. GeneraFng CRS: Done!
2. Submit CSR for Approval
Upload the generated CSR
Approving CSR
• Team Member (student) requests cerFficate
• Team Admin (teacher) approves the cerFficate
Approving the CSR
• Team Admin (teacher) approves the CSR
Approving CSRs
• Team agent/admin is responsible for approving team members requests.
• But before doing this, team admin must first submit theiry own CSR for approval!
• Once the CSR is approved, the member can download the cerFficate.
3. Downloading and Installing CerFficate
• Team member has now – Generated the request (CSR) – Uploaded the request – Goaen approved
• Now team member must download and install the cerFficate
• Click download in the cerFficates secFon and save the .cer – file.
• Install the .cer file by double clicking it.
.cer
The cerFficaFon file
The csr -‐ file
Install by Double-‐Clicking the File
InstallaFon to Keychain Access
Developing on MulFple Computers?
• Not developing is possible on your computer • If you want to develope on mulFple computers (laptop, computer class), you must save your private key and transfer it to other systems.
• Private key was generated when you created the CSR and the private keys is Fed to your user account
How to Export?
1. Open Keychain Access app 2. Select Keys – category 3. Control-‐click the private key and select export
ExporFng
.p12 The cerFficaFon
file The csr -‐ file
Transfer this file between systems! Double-‐click it to install it on a
system.
Assigning Apple Devices
• What devices are used for development? • Team agent/admin (teacher) must assign them
• Team agent/admin must enter Unique Device IdenFfiers (UDID) for each iPhone into the program portal
• UDID? Connect iPhone to Mac and open Xcode or iTunes – Xcode: Navigate to Window/Organizer
UDID
Team member should send this
Team Admin Approves the Device
• When team member (student) has sent the UDID, then team admin (teacher) can add the device into the program portal
CreaFng App ID
• Development CerFficate: done • Device ID: done • App ID? – Unique idenFfier for your applicaFon – Enable users to take advantage of Push NoFficaFon
App ID?
• App ID consists of two parts 1. Bundle Seed ID, generated by Apple 2. Bundle idenFfier: generated by Team Agent / Admin
(Teacher)
• Is entered in the program portal
• Two types of App IDs – Wild card: one App ID for all your apps – Explicit: one App ID for one App (Push NoFficaFon)
CreaFng Wild Card App ID
Bundle IdenFfier with wild card
Wild Card Bundle IdenFfier
Provision Profile
• Provision profile containt a set of cerFficates, unique device idenFfiers and App ID and is valid for 90 days
• Profile is installed on the device • Create profile using Program Portal. Apple says that it takes up to one minute to create the profile. – for me, it took one day
CreaFng the Profile
Downloading the Profile
Download Link
Installing the Profile
• Open the profile file with iTunes • iTunes stores the profile file to ~/Library/MobileDevice/Provisioning Profiles
Installing Provision Profile on the Device
• Connect your Device • Launch Xcode • Navigate to Organizer – window and select your device
• Click '+' and select your provision profile to be installed on the device
Installing Profile to Device
Deploying App
• You have now – Approved CerFficate – Assigned Apple Device – Installed Development Provision Profile
• Now launch Xcode • Create new Project
Deploying App
• Change AcFve SDK to Device
Deploying App
• Highlight project target and select info
Deploying App
• Select the cerFficaFon / profile pair in the build / code signing idenFty
Deploying App
• Select ProperFes and change the idenFfier
• If wildcard was used this can be anything
Change this
Build and Go!
• Click Build and Go • The app should be compiled and installed on the device
Recommended