How to Deploy an Xcode App on an iPhone

Save

To develop apps for the iPhone, you must write the programming code in Apple's Xcode development environment. When you finish coding the app, you can test it using the iPhone simulator in Xcode. One disadvantage of using this testing method is that it does not show how your app will work with hardware on an iPhone or iPod Touch. After testing and debugging your app in the Xcode simulator, the next step is to try it out on a real device.

Things You'll Need

  • Mac computer
  • Xcode
  • Apple iOS Developer Program account
  • Finished iPhone app
  • Sign up for the iOS Developer Program. The cost is $99 and you can enroll at the Apple Developers' website. Indicate whether you wish to enroll as an individual or a company. If you enroll as an individual, your name will appear as the creator of the apps you distribute in the Apple App Store. Enroll as a company if you plan to add additional developers to your team or you want your company name to appear as the app creator. To enroll as a company, you need a legal company name, official company creation documents and the authority to sign legal documents for your company.

  • Obtain an iPhone Development Certificate from the iPhone Developer Program Portal to test your iPhone apps on your device. You'll need a certificate for each device you plan to test on. You will need the unique identifier (UUID) for each device. Connect the device to your Mac and start Xcode to get the UUID. Select "Window" and then "Organizer" on the menu. The Organizer will display the UUID for your iPhone.

  • Generate a certificate-signing request for each device you want to use for testing. Go to the "Keychain Access" application in the Applications/Utilities folder. Once there, select the "Certificate Assistant" menu and choose the option to "Request a Certificate From a Certificate Authority." Enter your email address. Select "Save to disk" followed by "Let me specify key pair information." Click "Continue." Choose a 2048-bit key size and RSA algorithm and save to a file.

  • Log in to the iOS Dev Center. When you reach the iPhone Developer Program Portal page, click "Launch Assistant." Create an App ID for your app and click "Continue." Assign a development device by entering its UUID. Submit the certificate-signing request to Apple.

  • Provide a description for your provisioning profile and click "Generate." Once your provisioning profile has been created, you can download and install it on your device by dragging the provisioning profile and dropping it on the Xcode icon.

  • Navigate back to the iOS Developer Program Portal to download the development certificate and install it on your iPhone. Download and double-click the file to install it into a keychain. In the "Keychain Access" application on your Mac, select the login keychain and you'll see a certificate for "iPhone Developer." Click "Continue" in the Development Provisioning Assistant at the iOS Developer Program Portal to install your iPhone application with Xcode. In Xcode, choose "Active SDK" and select the OS version number of your device.

    Deploy your app to your iPhone. With the app's project open in Xcode, run the app. You will be prompted for permission to access your certificate. Click "Allow." Your application should now be running on your iPhone.

References

  • Photo Credit David Paul Morris/Getty Images News/Getty Images
Promoted By Zergnet

Comments

You May Also Like

  • How to Test Apps on Your iPhone

    Apple has a useful iPhone Simulator application that allows you to test iPhone Applications that you create in XCode by simulating the...

  • How to Make iPhone Apps

    Have you ever though to cashing in on the money making market of apps? Anyone with a little computer knowledge can make...

  • How to: Xcode With PHP

    Programmers use the PHP programming language to quickly and easily deploy Web applications, particularly those dealing with database interactions such as blogs...

  • How Do I Create an iPhone App?

    The iPhone App Store has been a boon for independent developers. In April 2009, an iPhone user downloaded the one-billionth application, a...

  • The Requirements for iPhone Development

    The Requirements for iPhone Development. To develop software for the Apple iPhone, you need Apple's iOS Software Development Kit (SDK), a computer...

  • How to Remove iPhone Apps From Phone Applications Library

    What do you do if you want to get rid of one or more of those iPhone apps you downloded to your...

Related Searches

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!