2. 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
4. 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
5. 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
7. 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.
8. 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
16. 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.
17. 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.
21. 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
22. How
to
Export?
1. Open
Keychain
Access
app
2. Select
Keys
–
category
3. Control-‐click
the
private
key
and
select
export
24. .p12
The
cerFficaFon
The
csr
-‐
file
file
Transfer
this
file
between
systems!
Double-‐click
it
to
install
it
on
a
system.
25. 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
27. 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
28. CreaFng
App
ID
• Development
CerFficate:
done
• Device
ID:
done
• App
ID?
– Unique
idenFfier
for
your
applicaFon
– Enable
users
to
take
advantage
of
Push
NoFficaFon
29. 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)
30. CreaFng
Wild
Card
App
ID
Bundle
IdenFfier
Wild
Card
Bundle
IdenFfier
with
wild
card
31. 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
34. Installing
the
Profile
• Open
the
profile
file
with
iTunes
• iTunes
stores
the
profile
file
to
~/Library/
MobileDevice/Provisioning Profiles
35. 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
37. Deploying
App
• You
have
now
– Approved
CerFficate
– Assigned
Apple
Device
– Installed
Development
Provision
Profile
• Now
launch
Xcode
• Create
new
Project