Explore this tutorial to learn about iOS development, including how to preview an app on your iPhone without an Apple Developer Account, setting up an Apple ID, configuring Xcode, and setting up your phone to run your apps.
This exercise is excerpted from Noble Desktop’s past app development training materials and is compatible with iOS updates through 2021. To learn current skills in web development, check out our coding bootcamps in NYC and live online.
Topics covered in this iOS Development tutorial:
Previewing on an iPhone without an Apple Developer Account
Exercise Overview
All you need to preview an app on your iPhone is an Apple ID and these instructions. Note that if you are ever asked to Trust the phone or the computer, say Trust!
Setting Up an Apple ID
- If you already have an Apple ID, skip to the next section, Setting Up Xcode. Don’t know? If you have an iPhone you have an Apple ID! If you are still not sure, create a new one.
- With a browser, go to developer.apple.com
- Click Account to create an Apple ID. Follow the prompts.
- Agree to whatever Apple asks in their terms, then hit Submit.
Setting Up Xcode
- In Xcode open up preferences: Xcode > Preferences.
- Click on the Accounts tab.
- Click on the + at the bottom left of the window and choose Add Apple ID.
- Log in as prompted.
- Once the new ID shows up on the left, click on it.
- You should see your name below with a (Personal Team) and the role Free or User.
- Close the window.
Setting Up Your Phone to Run Your Apps
For any existing apps, you will now have to make sure the correct Team is selected so you can preview on your iPhone. To do that:
- Plug your phone into the computer using a Lightning Cable.
- Open any app you have created (Hello World, or Dice, for example).
- Click on its name at the top of the Project Navigator.
- Under General > Signing > Team select the team you created.
- Under the active scheme on the upper left
, at the top of the list, choose the device you just plugged in.
- Hit the Run button to see the app on your iPhone.
-
You will probably get this message:
- As it says in the message, go into Settings > General > Device Management.
- You will see the Apple ID email you used. Tap that, then the app that is attempting to load. It will ask if you trust the device. You do!
Revel in the joy of running your own app on your iPhone!