Download your app
to your device
(iPhone, iPad, or iPod Touch)
You will have to install two keys and two certificates
into your Macintosh keychain,
and a provisioning profile into your Xcode and your device.
- Join the team.
Give you email address to the team agent
(Mark Meretzky).
He will ask Apple to invite you to join the team.
Please RSVP to the email from Apple inviting you to join.
Joining the team will let you download your apps to your device
without having to pay
$99.
- Create a Certificate Signing Request (CSR)
and your two keys.
After you have received email confirming that you are a team member,
launch the application
Keychain Access.app
on your Mac.
(One space before the uppercase A.)
Keychain Access → Preferences… → Certificates
Make sure that OCSP and CRL are both Off.
You can then close the Preferences window.
Keychain Access →
Certificate Assistant →
Request a Certificate From a Certificate Authority…
User Email Address: johndoe@johndoe.com
(the address you used when you joined the team)
Common Name: John Doe
Leave the CA Email Address empty.
Request is:
• Saved to disk
✓ Let me specify key pair information
Continue
Save As: CertificateSigningRequest.certSigningRequest
Where: Desktop
Save
Key Size: 2048 bits
Algorithm: RSA
Continue
Your certificate request has been created on disk.
Done
You should now have a file on your desktop with the unwieldly name
CertificateSigningRequest.certSigningRequest
.
As a side effect of creating this file,
you should also have two keys, public and private, in your keychain.
To make sure the keys are there,
go to the Keychain Access window
and click on the Keys category in the lower left corner.
(You may also have to select
login
in the upper left corner.)
The name of the keys should be the Common Name you specified above.
- Submit the CSR.
Go to the
iOS
Provisioning Portal.
Enter your Apple ID and password.
Click on “Member Center” in the upper right,
and then
“Certificates, Identifiers, & Profiles”
On the left side, click on
Certificates.
Under Certificates, click on Development.
Press the plus sign.
What type of certificate do you need?
• iOS App Development
Continue
About Creating a Certificate Signing Request (CSR)
Continue
Generate your certificate.
Upload CSR file.
Choose file…
Choose the
CertificateSigningRequest.certSigningRequest
file on your desktop.
Press the Generate button.
Your certificate is pending approval.
Press the Done button.
- Download your certificate.
Back at the “Certificates, Identifiers & Profiles”
page, the Status of your certificate will be
“Pending Approval”.
Your
team agent
will approve your request;
he usually checks his email at least once per day.
When you get email from Apple, go back to the
Back at the “Certificates, Identifiers & Profiles”
page.
The status of your certificate should be “Issued”.
(You may have to press your browser’s Refresh button.)
Select your certificate and press the Download button.
Go to the directory that holds your downloaded files,
probably the
Downloads
or
Desktop
subdirectory of your home directory.
You should see a new file,
ios_development.cer
.
- Install the certificate into your keychain.
Double-click on the
ios_development.cer
files to install it.
To make sure it is installed,
go to the
Keychain Access window and click on the Certificates category
in the lower left corner.
You should see a certificate named
“iPhone Developer: Your Name (serial number)”.
(You may have to make the Name column wider to see the serial number.)
The certificate should have a triangle in front of it.
Click on the triangle and you should see your private key.
You can then discard the
CertificateSigningRequest.certSigningRequest
file on your Desktop.
- Register your device.
This is something that your
team agent
will have to do for you.
The name that he uses for your device will be your
GitHub name.
Our examples will use the dummy name
abc1234
.
You will have to give him the Device ID
(the “UDID”)
of your device,
consisting of 40 hexadecimal digits.
(The 16 possible hexadecimal digits are
0123456789abcdef
.)
One way to discover the Device ID is to plug your device into your Mac
and then launch the application
Xcode.app
.
Window →
Devices
Select your device and
look under Device Information for the 40-character identifier.
Another way to discover the Device ID is to launch iTunes.
In the left panel, click on your device.
In the right panel,
click on the Serial Number
and it will change into your 40-character identifier.
After your team agent has registered your device,
go to the
iPhone
Provisioning Portal.
On the left side, click on
Devices.
Under Devices, click on All.
You should see your device and your 40-character identifier
in the list of devices.
- Create an App ID.
We can all use the same App ID,
the one named
mm64
.
To see the App ID named
mm64
,
go to the
iPhone
Provisioning Portal.
On the left side, click on
App IDs.
- Create a Provisioning Profile.
This is another thing that your team agent will have to do for you.
He will do it when he registers your device,
if you have already joined the team.
Go to the
iPhone
Provisioning Portal.
On the left side, click on
Provisioning.
Under Provisioning, click on All.
Select your provisioning profile.
After a while, the status of your Provisioning Profile will change from
Pending to Active.
(Refresh the page to update the status.)
You can then press Download.
Your download directory will contain the file
abc1234.mobileprovision
.
Launch Xcode.
Drag the
abc1234.mobileprovision
file onto the Xcode icon in the dock.
To make sure that the provisioning profile is installed into Xcode,
Window → Devices
In the left panel, control-click on your device and select
Show Provisioning Profiles….
Download the app to the iPhone
- Plug the iPhone into the Mac.
Open your project in Xcode.
In the upper left corner of Xcode,
select your device instead of the iOS Simulator.
Press the Run button.
-
A new window will pop up on the Mac.
codesign wants to sign using key "your real name" in your keychain.
Do you want to allow access to this item?
Allow.
See the iPhone on your Mac screen
Launch the application Quick Time Player on your Mac.
Pull down
File → New Movie Recording
To the right of the red button in the Movie Recording window that pops up,
pull down the menu and select your device under Camera.