42
iPhone Developer University Program Jussi Pohjolainen Tampere University of Applied Sciences

iPhone University Developer Program

Embed Size (px)

DESCRIPTION

Managing teams and deploying apps in iPhone University Developer program

Citation preview

Page 1: iPhone University Developer Program

iPhone  Developer  University  Program  

Jussi  Pohjolainen  

Tampere  University  of  Applied  Sciences  

Page 2: iPhone University Developer Program

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    

Page 3: iPhone University Developer Program

Developer  Programs  

Page 4: iPhone University Developer Program

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  

Page 5: iPhone University Developer Program

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  

Page 6: iPhone University Developer Program

Program  Portal,  SeQng  the  Team  

Page 7: iPhone University Developer Program

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.  

Page 8: iPhone University Developer Program

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  

Page 9: iPhone University Developer Program

1.  GeneraFng  CSR  

Page 10: iPhone University Developer Program

1.  GeneraFng  CSR  

Page 11: iPhone University Developer Program

1.  GeneraFng  CSR  

Page 12: iPhone University Developer Program

1.  GeneraFng  CRS:  Done!  

Page 13: iPhone University Developer Program

2.  Submit  CSR  for  Approval  

Upload  the  generated  CSR  

Page 14: iPhone University Developer Program

Approving  CSR  

•  Team  Member  (student)  requests  cerFficate  

•  Team  Admin  (teacher)  approves  the  cerFficate  

Page 15: iPhone University Developer Program

Approving  the  CSR  

•  Team  Admin  (teacher)  approves  the  CSR    

Page 16: iPhone University Developer Program

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.  

Page 17: iPhone University Developer Program

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.    

Page 18: iPhone University Developer Program

.cer  

The  cerFficaFon  file  

The  csr  -­‐  file  

Page 19: iPhone University Developer Program

Install  by  Double-­‐Clicking  the  File  

Page 20: iPhone University Developer Program

InstallaFon  to  Keychain  Access  

Page 21: iPhone University Developer Program

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  

Page 22: iPhone University Developer Program

How  to  Export?  

1.  Open  Keychain  Access  app  2.  Select  Keys  –  category  3.  Control-­‐click  the  private  key  and  select  export  

Page 23: iPhone University Developer Program

ExporFng  

Page 24: iPhone University Developer Program

.p12  The  cerFficaFon  

file  The  csr  -­‐  file  

Transfer  this  file  between  systems!  Double-­‐click  it  to  install  it  on  a  

system.  

Page 25: iPhone University Developer Program

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  

Page 26: iPhone University Developer Program

UDID  

Team  member  should  send  this  

Page 27: iPhone University Developer Program

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  

Page 28: iPhone University Developer Program

CreaFng  App  ID  

•  Development  CerFficate:  done  •  Device  ID:  done  •  App  ID?  – Unique  idenFfier  for  your  applicaFon  – Enable  users  to  take  advantage  of  Push  NoFficaFon    

Page 29: iPhone University Developer Program

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)  

Page 30: iPhone University Developer Program

CreaFng  Wild  Card  App  ID  

Bundle  IdenFfier  with  wild  card  

Wild  Card  Bundle  IdenFfier  

Page 31: iPhone University Developer Program

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  

Page 32: iPhone University Developer Program

CreaFng  the  Profile  

Page 33: iPhone University Developer Program

Downloading  the  Profile  

Download  Link  

Page 34: iPhone University Developer Program

Installing  the  Profile  

•  Open  the  profile  file  with  iTunes  •  iTunes  stores  the  profile  file  to  ~/Library/MobileDevice/Provisioning Profiles

Page 35: iPhone University Developer Program

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  

Page 36: iPhone University Developer Program

Installing  Profile  to  Device  

Page 37: iPhone University Developer Program

Deploying  App  

•  You  have  now  – Approved  CerFficate  – Assigned  Apple  Device  –  Installed  Development  Provision  Profile  

•  Now  launch  Xcode  •  Create  new  Project  

Page 38: iPhone University Developer Program

Deploying  App  

•  Change  AcFve  SDK  to  Device  

Page 39: iPhone University Developer Program

Deploying  App  

•  Highlight  project  target  and  select  info  

Page 40: iPhone University Developer Program

Deploying  App  

•  Select  the  cerFficaFon  /  profile  pair  in  the  build  /  code  signing  idenFty  

Page 41: iPhone University Developer Program

Deploying  App  

•  Select  ProperFes  and  change  the  idenFfier  

•  If  wildcard  was  used  this  can  be  anything  

Change  this  

Page 42: iPhone University Developer Program

Build  and  Go!  

•  Click  Build  and  Go  •  The  app  should  be  compiled  and  installed  on  the  device