project habittracker
Step 6: Your Phone
System Text-to-Speech Ready
Slide: 0:00 / 0:00
Slide 1 of 0Interactive Deck
Full Lesson Reference
Run it on your real device.
Where We Are
The app works in the simulator. Let's put it on your actual iPhone.
Connect Your iPhone
- Plug your iPhone into your Mac with a cable
- Unlock your iPhone and tap "Trust This Computer" if prompted
- In Xcode, click the device selector at the top (where it says "iPhone 15" or similar)
- Select your iPhone from the list
Sign the App
Xcode needs to know who you are:
- Go to Xcode → Settings → Accounts
- Add your Apple ID if it's not there
- In your project settings, under "Signing & Capabilities", select your Apple ID as the Team
- Xcode will handle the rest
Run It
Press Cmd + R or click Play.
The first time, your iPhone might say "Untrusted Developer". Fix it:
- On your iPhone, go to Settings → General → VPN & Device Management
- Find your developer profile
- Tap "Trust"
Try again. Your app should launch on your phone.
Use It for Real
Unplug the cable. The app stays on your phone.
Try using it for a day. Track some real habits. See how it feels. Notice what you'd change.
Checkpoint
By now you should have:
- App running on your real iPhone
- Developer profile trusted
- Using it untethered
What You Learned
- Running apps on real hardware
- Code signing basics
- The difference between simulator and real device
- Using your own creation daily
Exercises
- Connect your iPhone, set your Apple ID as the Team under Signing & Capabilities, and run the app on your device.
- If you hit "Untrusted Developer", trust your profile under Settings → General → VPN & Device Management, then relaunch.
- Unplug the cable and use HabitTracker for a full day with real habits — jot down one thing you'd change. You'll use that idea in Step 7.