Getting Started
Prerequisites
You will need the following for this tutorial:
A Mac with Xcode.
An iPhone connected to the Mac.
An Apple Account that is 18 years old or above.
Configure Xcode
Click on the blue
.xcodeproj
file at the top of your file directory in Xcode.Click on your app name under "Targets".
Head into "Signing & Certificate".
If you haven't done so, click "Add Account" and sign in with an Apple Account that is 18 years old or above.
Select your Personal Team under the Team dropdown.
Prepare your iPhone
Connect your iPhone to your Mac with a cable.
If prompted, click "Trust" on both the iPhone and your Mac.
Select your iPhone as the run destination in Xcode.
Running your App
Click on the "play" button to run your app (or use Command-R).
If prompted, enter your Mac's password, then click "Always Allow".
Click "Cancel" on the "Untrusted Developer" alerts on both your iPhone and Mac.
Head into Settings > General > VPN & Device Management.
Under the "Developer App" section, click on the profile with your Apple Account email.
Click "Trust", then "Allow" to trust your app.
Head back to your Home Screen, then launch your app.
You may now disconnect your iPhone from your Mac, if you wish to.
In These Collections
This article can also be found in these collections.