WWW.DISSERTATION.XLIBX.INFO
FREE ELECTRONIC LIBRARY - Dissertations, online materials
 
<< HOME
CONTACTS



Pages:   || 2 |

«Table of Contents Recommended Software Signing up for the Developer Program Provisioning, The Easy Way Provisioning, The Hard Way Getting Your ...»

-- [ Page 1 ] --

iOS Device Provisioning

the Big Nerd Ranch Guide

Introduction

When students are preparing to attend one of our iOS Bootcamps, we typically recommend

that they sign up in advance for the Apple Developer Program, and bring a provisioned device

with them. As this can be a somewhat involved process to troubleshoot, we don’t have time to

spend on this at the beginning of our already jam-packed week.

Here’s a guide, then, to how you can complete the process at home.

This is a “living document” like Apple’s App Store Review Guidelines. I will periodically come back and update it whenever Apple updates the developer tools or portal.

Table of Contents Recommended Software Signing up for the Developer Program Provisioning, The Easy Way Provisioning, The Hard Way Getting Your Certificate Adding Your Device Generating Your Profile Testing Your Setup Troubleshooting Changelog Recommended Software

This guide and our course materials are based on the following software versions:

Xcode: 4.6.3 iOS: 6.1.3 / 6.1.4 depending on device OS X: 10.8.4 At any given time, especially during the Summer, it is likely that there is a more recent (beta) version of Xcode available from the iOS Developer Portal.

We strongly recommend to our students that they come to class using the most up to date software versions listed above. Running outdated or beta software can slow your progress significantly during class.

If you need to update your system software either on your Mac or on your iOS device, we strongly recommend that you do so before arriving.

Apple has guides for updating your iOS and OS X versions, and you can download the most recent version of Xcode from the Mac App Store.

Signing up for the Developer Program Anyone can test iOS apps in the iOS Simulator that ships as a part of Xcode.

If you want to test your apps on your device, however, you must be a paid member of the iOS Developer Program.

If your company has an app on the App Store, it is possible that you might be able to use the company iOS Developer Program membership rather than paying for your own. Even in such cases, I typically recommend that folks have their own personal memberships; life is so much easier with one, and it’s only $99.

You can enroll in the Standard iOS Developer Program on Apple’s website.

Except where explicitly stated otherwise, the rest of these instructions will assume that you have an individual iOS Developer Program membership.

Provisioning, the Easy Way Recent versions of Xcode have built in functionality to make the process of setting up a device very easy. This works just fine most of the time.

Here’s how:

Connect your iOS device to your Mac via the USB cable Launch Xcode and show the Organizer window (select Organizer from the Window menu) Switch to the Devices tab of the Organizer, and select your device from the list on the left.

Click “Use for Development”.

Xcode will begin the process of chatting with Apple’s servers and may ask some questions about requesting certificates, adding your device to the portal, and finally generating and downloading your provisioning profiles. Answer any of these in the affirmative.

If the little gem next to your device in the Organizer device list turns green, you’re done! Skip down to the Testing Your Setup section. Yeehaw!

If the gem didn’t turn green, then there was a hiccup in the automatic process, and you’ll need to do it manually. Continue to Provisioning, The Hard Way.

Provisioning, the Hard Way Getting Your Certificate The first ingredient you’ll need is a secure certificate that you can use to digitally sign your apps before they’ll run on the device.

Launch the Keychain Access application on your Mac. It lives in the Utilities subfolder of the Applications folder. You can also find it with Spotlight.

Select My Certificates from the left-hand sidebar. You should see a list of certificates you have on your system.

There is one certificate in particular that you’re looking for. It’s named iPhone Developer:

Your Name (XXXXXXXXXX):

Don’t worry if you don’t have an entry like this, or even if the entire list is empty. That’s what you’re here to find out.

If you see an item like the one above, click on the little gray disclosure triangle to its left, to expand it. You should see a sub-item with an icon that looks like a key, and has “private key” in the “kind” column, as illustrated above.

If you see an “iPhone (or iOS) Developer” certificate and it’s got a private key attached to it, then you’re done with this step! Continue to Adding Your Device.

If you don’t have a certificate, or you have a certificate without a private key, then you’ll need to go through the certificate generation process. Let’s get started.

Select Request a Certificate From a Certificate Authority… from the Certificate Assistant sub-menu of the Keychain Access menu at the top of the screen. This will launch the Certificate Assistant.

For the User Email Address, enter your Apple ID email address. Enter your name for the Common Name, select Saved to Disk from the options at the bottom, and then click Continue.





When asked, let the Certificate Assistant save the file (named “CertificateSigningRequest.certSigningRequest” by default - that’s fine) to your Desktop. You’ll need that file shortly. Click Done.

Next, sign into the Certificates, Identifiers & Profiles page of the iOS Dev Center.

Click Certificates.

You should be looking at the certificate, device, app, and provisioning profile management resource, with your Certificates list (which is probably empty) currently selected. I recommend bookmarking this page; it’ll come in handy.

Click on the + button to launch the “Add iOS Certificate” assistant.

The first question is, “What type of certificate do you need?”, and the answer is iOS App Development. Select this option and scroll down, then click Continue.

This next page walks you through steps you’ve already taken. Click Continue again.

On this page, titled “Generate your cerficate”, click Choose File… and select the CertificateSigningRequest.certSigningRequest file that you created earlier in Keychain Access and saved to your Desktop.

Click Generate. The page will take a brief coffee break while it crunches some numbers and generates the certificate you’ve requested.

When the page resumes, you’ll have a Download button. Click it to download your freshlyminted certificate.

Click Done, and you’ll be returned to the Certificates list. You should now see a line item here with your name, “iOS Development” as its type, and an expiration date one year from now.

Go find the “ios_development” file you’ve downloaded (it’s probably in your Downloads folder), and double-click it. Keychain Access will pop back up, asking where you’d like to import this key. Make sure your login keychain is selected, and click Add.

Return to Keychain Access once more, and verify that you now see a certificate under My

Certificates with a private key associated with it:

If you do, you’re clear to go on to the next step, Adding Your Device. Otherwise, something went wrong, and you may want to retry this step or have a look at some of the advice in the Troubleshooting section below.

Adding Your Device You made it! Things get easier from here, I promise.

Next, it’s time to identify your device to Apple so that Xcode can sign each of your apps to run on your device.

Back in the Xcode Organizer, have a look at your device. The number named “identifier” (also called Universal Device Identifier, or UDID) is a 40-character alphanumeric string.

Copy it to the clipboard, like you would any text.

Back in the Certificates, Identifiers & Profiles page of the iOS Dev Center, click Devices in the left-hand sidebar. Here’s a link in case you’ve closed the page already.

If you already see your device in this list, excellent! Continue to the next section, Generating Your Profile.

If you don’t see it, click on the + button in the upper-right corner to add a new registered device.

On the next page, enter a name for your device, and paste the UDID that you copied from the Xcode Organizer.

Click Continue.

You’ll be asked to double-check the submission, for a good reason. Do it, then click Register.

You’ll be dropped back at the list of your devices, but there is now an item for the device you’ve just added.

Move on to the next section, Generating Your Profile.

Generating Your Profile The final piece of the puzzle that you need is a provisioning profile. A provisioning profile contains information about one or more developers (using your certificate), one or more devices, and either an App ID or a Team ID. You already have a Team ID (it was automatically generated for you), so all of the bits should be in place to create the provisioning profile.

Xcode is responsible for creating one for you, and keeping it in sync with the iOS Dev Center.

Open the Xcode Organizer again, and visit the Library’s Provisioning Profile’s list.

Click Refresh. Xcode will begin chattering with Apple’s servers again, like it did if you attempted Provisioning, The Easy Way. This should generate your iOS Team Provisioning Profile.

When it’s done, look at the list again. You should see an item that looks like this:

The important bit here is that green checkbox, and the words “Valid profile.” If yours is missing, or says anything other than “Valid profile,” you’ll need to do some troubleshooting.

Testing Your Setup It’s time to test an app! Woohoo!

First, connect your device and leave it connected for the rest of this test.

In Xcode (not the Organizer), select New Project… from the File menu at the top of the screen. This will begin the New Project assistant.

In the left-hand sidebar, select Application from the iOS group, and choose the Utility Application template and click Next.

Fill out the short questionnaire about your new project and then click Next:

The values that you enter aren’t terribly important; you’re just going to delete this project anyway.

The last step of the New Project assistant is choosing a save location for your project. Choose your Desktop and click Create.

Welcome to Xcode! There’s an awful lot going on here, but we’re only interested in a very small piece of what Xcode can do.

If your device has a passcode, wake the device now and key it in so that you’re looking at the device’s Home Screen.

Have a look at the Scheme dropdown near the top-left of the window:

Select your device in the Scheme dropdown, and then click Run.

It’ll take a few moments (I’ve had it take upward of 10 seconds on a slow computer) your device’s screen should turn black, and then launch the utility template app!

Congratulations! Your device is provisioned and ready for running your apps!

Troubleshooting Here are some common problems and things to try if you get stuck.

If you’re here because you’re preparing to take one of our Bootcamps and these steps aren’t working for you, be sure to let us know and we’ll help!

I don’t have an iOS Team Provisioning Profile Back in your web browser, on the Certificates, Identifiers & Profiles page, select Provisioning Profiles from the left-hand sidebar.

You should see an iOS Team Provisioning Profile. Click on it.

You’ll see that your profile has at least one Certificate and at least one Device associated with it. Or maybe not.

The root problem may be:

If you have a team profile, but the number of Certificates listed is zero, then something went wrong during the Getting Your Certificate step. I’d give it another go.

If you have a team profile, but the number of Devices listed is zero, then the problem most likely happened while adding your device. Use the Adding Your Device instructions to verify that your device has actually been added. Double, even triple check that the identifier that you see in Xcode matches the one in the iOS Dev Center’s devices list.

If your iOS Provisioning Profiles list on this page simply has zero items in it, then then Xcode failed to create the team profile for you. The following instructions will walk you through creating a wildcard profile that you can use instead.

Creating a Wildcard Provisioning Profile Start by visiting the Certificates, Identifiers & Profiles page, and select App IDs from the lefthand sidebar.

If there are no items in the list here, go create an App ID first, and then come back.

Next, verify that you have a valid certificate. Select Certificates in the left-hand sidebar. If this list is empty, read back through Getting Your Certificate to make sure you’ve done everything right. You may need to re-do that step from scratch, and then come back.

Provided at this point that you’ve got both a wildcard App ID (either one that was created for you, or that you created yourself), select Provisioning Profiles from the left-hand sidebar of the Certificates, Identifiers & Profiles page.

Click the + button toward the upper-right corner. This begins the Add iOS Provisioning Profile assistant.

On the first page, select iOS App Development from the list, and click Continue.

On the second page, select your wildcard App ID from the list, and click Continue.

On the third page, check the box next to your Certificate name, and click Continue.

On the fourth page, check the box next to your Device name, or Select All, and click (you guessed it) Continue.

On the fifth page, name the profile “Your Name Wildcard Provisioning Profile”, and click ContiI mean Generate.

On the final page, click the Download button, which will download a file to your computer with the extension.mobileprovision. Find this file (probably in your Downloads folder) and double-click it. This will open Xcode, which will then ingest and process the file.



Pages:   || 2 |


Similar works:

«Social Networking in the Neighbourhood: A Field Research in Istanbul Esra KÖTEN* Abstract This study discusses the life in the neighbourhoods stuck between the gated communities recently built in the district of Sancaktepe, in terms of neighbourliness and social networks in the neighbourhood. In this context, in-depth interviews were conducted with the residents of the neighbourhoods about their lives, experiences, relations, urban structure, urban transformation and the rise of gated...»

«Key Evaluation Findings of the West Midlands (WM) 1-2-1 Mentoring Scheme Dr Basia Spalek     Institute of Applied Social Studies          Professor Lynn Davies    School of Education            with      Dr Laura Zahra McDonald     Institute of Applied Social Studies    August 2010 This report was authored by Dr Basia Spalek and Professor Lynn Davies and commissioned by Zubeda Limbada via the West Midlands 1–2–1 Mentoring Project Board....»

«UNECE STANDARD DDP-04 concerning the marketing and commercial quality control of HAZELNUT KERNELS moving in international trade between and to UNECE member countries I. DEFINITION OF PRODUCE This standard applies to whole hazelnut kernels from varieties grown from Corylus avellana L. and Corylus maxima Mill. and their hybrids from which the protective ligneous epicarp has been removed. II. PROVISIONS CONCERNING QUALITY The purpose of the standard is to define the quality requirements of...»

«इंटरनेट मानक Disclosure to Promote the Right To Information Whereas the Parliament of India has set out to provide a practical regime of right to information for citizens to secure access to information under the control of public authorities, in order to promote transparency and accountability in the working of every public authority, and whereas the attached publication of the Bureau of Indian Standards is of particular interest to the public, particularly disadvantaged...»

«This is a preprint of an article whose edited and final form will appear in Performance Research 15:3 (2010) [copyright Taylor & Francis] Enactment in Listening: Intermedial Dance in EGM Sonic Scenarios and the Bodily Grounding of the Listening Experience Deniz Peters (2010) Abstract: I here suggest that audiences, in listening, themselves perform. Listening, I claim, is not a passive consumption of organised sounds, but based on an embodied activity, an invisible enactment of the heard. I...»

«Interacting with the Computer using Gaze Gestures Heiko Drewes1, Albrecht Schmidt2 1 Media Informatics Group, LMU University of Munich, Amalienstraße 17, 80333 München, Germany heiko.drewes@ifi.lmu.de 2 Fraunhofer IAIS and B-IT, University of Bonn, Schloss Birlinghoven, 53754 Sankt Augustin, Germany albrecht.schmidt@acm.org Abstract. This paper investigates novel ways to direct computers by eye gaze. Instead of using fixations and dwell times, this work focuses on eye motion, in particular...»

«Development and Use of a Saturated Absorption Spectroscopy Cell for Tuning the Frequency of the Atom-Cooling Laser Michael Peron Advisor: Dr. Thomas Killian Abstract 2 Abstract This thesis describes the construction, design, and subsequent successful use of a saturated absorption spectroscopy cell, along with complimentary electronics and temperature control to tune and eventually lock the frequency of the atom-cooling laser. By improving the flexibility of control of the magnetic field within...»

«Varicella-Zoster Virus 91 8 Varicella-Zoster Virus Anne A. Gershon INTRODUCTION Varicella-zoster virus (VZV) is one of the eight herpesviruses that infects humans. The virus causes two diseases, varicella (chickenpox) and zoster (shingles) (1). Varicella is primarily an illness of children, although as many as 5% of adults in the United States may be susceptible. Zoster is caused by reactivation of latent VZV infection in sensory ganglia, which resulted during the attack of varicella, usually...»

«MTHEA Nashville 2016 Curriculum Fair May 12-14, 2016 at The Fairgrounds Nashville Fair Schedule Thursday, May 12 10:00 a.m. – 6:00 p.m. Exhibitors set up Friday, May 13 7:30a.m. (Doors open for Exhibitors) 9:00 a.m. – 8:00 p.m. Exhibits open Saturday, May 14 8:00 a.m. (Doors open for Exhibitors) 9:00 a.m. – 3:00 p.m. Exhibits open 3:00 p.m. – 6:00 p.m. Exhibitors break down Booth Fees Booths are reserved for a fee of: $245 per booth if received by Dec. 1, 2015 $295 per booth if received...»

«Enhancing Risk Analysis Capacities for Flood, Tropical Cyclone Severe Wind and Earthquake for the Greater Metro Manila Area Component 5 – Earthquake Risk Analysis PHILIPPINE INSTITUTE OF VOLCANOLOGY AND SEISMOLOGY GEOSCIENCE AUSTRALIA 2 2 2 Trevor Allen1, Hyeuk Ryu1, Bartolome Bautista, Ma. Leonila Bautista, Ishmael Narag, Winchelle Ian 2 2 2 2 Sevilla, Ma. Lyn P. Melosantos, Kathleen Papiona, Jun Bonita 1. Geoscience Australia 2. Philippine Institute of Volcanology and Seismology ©...»

«PwC Advisory Performance Improvement 2007 Technology Licensing Marketplace Study* *connectedthinking Table of contents Overview 4 Best practices demand that companies address unlicensed technology. Trends 1. Consensus estimates seriously miscalculate the impact of licensing revenue leakage. 7 2. Licensing leakage represents more than $25 million in lost revenue and $895 million in lost market capitalization for many companies. 17 3. Technology licensors are most concerned about licensing...»

«CURRICULUM VITAE RICHARD M. CROOKS Robert A. Welch Chair in Materials Chemistry The University of Texas at Austin October, 2015 Department of Chemistry Voice: 512-475-8674 Fax: 512-475-8651 The University of Texas at Austin Email: crooks@cm.utexas.edu 105 E. 24th St., Stop A5300 www: http://rcrooks.cm.utexas.edu/research/ Austin, TX 78712-1224 FORMAL HIGHER EDUCATION Graduate: The University of Texas at Austin, Ph.D., 1987 Research Advisor: Dr. Allen J. Bard Specialization: Electrochemistry...»





 
<<  HOME   |    CONTACTS
2016 www.dissertation.xlibx.info - Dissertations, online materials

Materials of this site are available for review, all rights belong to their respective owners.
If you do not agree with the fact that your material is placed on this site, please, email us, we will within 1-2 business days delete him.