How to run your Xcode app on your own iPhone with a free Apple ID

You do not need to pay Apple to run your own Xcode project on your own iPhone. The seven steps, the settings on the phone, and what a free Apple ID allows.

By Sigsten Gustavii· · 10 min read

Build your own grocery list with Borel

Build this app

The Simulator is good for building an app, but an app only feels real on a phone: the camera works, the size is right, and it is there on the Home Screen when you are away from the Mac. Apple lets you put your own Xcode project on your own iPhone with nothing but the Apple ID you already have.

This guide walks through it from a new project to an icon on the Home Screen, using the names in Apple's current documentation. It also covers what a free Apple ID does not allow, the messages you might meet, and what to do if you have no Mac.

What you need

  • A Mac with Xcode. Xcode is Apple's developer tool, downloaded from the Mac App Store, and it runs only on macOS.
  • An iPhone and its cable, and the iPhone's passcode.
  • An Apple ID. The one you use for iCloud works. You do not need Apple's paid Developer Program for this.
  • An Xcode project that builds. If it runs in the Simulator, it is ready.
What running your own app on your own iPhone needs, with a free Apple ID and with a membership
Free Apple IDApple Developer Program
CostNothing99 USD per membership year
Run on your own iPhone from XcodeYesYes
How long an install opens7 days, then run it againNot held to the 7 days
Your apps on one deviceUp to 3Not held to the 3
TestFlight and the App StoreNoYes

The free column is Apple's own: its membership comparison calls a free account in Xcode a Personal Team and lists those numbers for it.

Step 1: add your Apple ID to Xcode

Open Xcode, then choose Xcode, Settings from the menu bar and click Apple Accounts. Add your Apple ID and sign in. Xcode shows the account with a team beside it. For an account with no membership, that team is your Personal Team.

You do this once per Mac. Xcode remembers the account for every project.

Step 2: set up signing for the project

Every app that runs on a phone has to be signed, so the phone can tell who made it. Xcode does the work if you let it.

  1. Click your project at the top of the navigator, then select the app target.
  2. Open the Signing & Capabilities pane.
  3. If a Set Up Signing button appears under Signing, click it. Choose your team from the Team menu, enter a bundle identifier in the Bundle Identifier field and click Set Up.
  4. If the button does not appear, turn on Automatically manage signing, choose your team and enter a bundle identifier in the same pane.

The bundle identifier is the app's unique name in reverse-domain form, such as com.yourname.groceries. Apple's documentation says it must be unique, and Xcode warns at the bottom of the sheet if someone already uses the one you typed. Adding your own name is usually enough.

Step 3: connect the iPhone

Plug the iPhone into the Mac with its cable and unlock it. The iPhone asks whether to trust this computer: tap Trust and enter your passcode.

In Xcode's toolbar, open the run destination menu, the one that shows a simulator's name. Your iPhone appears in the list once it is paired. If it does not, choose Manage Devices from the same menu. Apple's current documentation calls the window that opens Device Hub, and it is where devices are paired with the Mac; in older versions of Xcode the same job is done in the Devices and Simulators window.

If Xcode says platform support is missing, click the Get button beside the "Any iOS Device" destination and let the download finish.

Step 4: turn on Developer Mode on the iPhone

Since iOS 16, an iPhone will not run an app installed this way until a switch called Developer Mode is on. Apple's page on Developer Mode gives the path:

  1. On the iPhone, open Settings and tap Privacy & Security.
  2. Scroll to the bottom. Under Security, tap Developer Mode and turn the switch on.
  3. An alert warns that Developer Mode reduces the security of the device. Tap Restart.
  4. After the restart, unlock the iPhone, confirm that you want Developer Mode on and enter your passcode.

If you cannot find the switch, that is expected on a phone that has never met Xcode. Apple says Developer Mode only appears in Settings if you start pairing or if the device was paired to a Mac before. Connect the phone, let Xcode see it, and look again. Our guide to Developer Mode on iPhone has more on what the switch does and how to turn it off.

Step 5: choose the iPhone and press Run

Back in Xcode, choose your iPhone in the run destination menu and click the Run button in the toolbar, or choose Product, Run. With automatic signing on, Xcode registers the device with your account and creates the provisioning profile, the small file that says this app may run on this phone. If a Register button appears under Signing, click it.

When the build finishes, Xcode copies the app to the phone and its icon appears on the Home Screen. Keep the phone unlocked while this happens.

Step 6: trust your Apple ID on the iPhone

The app may not open yet. If the iPhone says "Untrusted Developer", it is asking you, once, whether apps signed by your Apple ID may run on this phone:

  1. Open Settings, tap General, then VPN & Device Management.
  2. Under Developer App, tap the entry that names your Apple ID.
  3. Tap Trust and confirm. If the button reads Allow & Restart instead, which is what Apple's article shows for an organization's apps on iOS 18 and later, tap that and let the iPhone restart.

The iPhone must be online for this, because it checks your certificate with Apple. If it cannot, you get a different message; see Unable to Verify App. The trust screen itself is explained in how to trust your own app.

Step 7: open the app

Go back to the Home Screen and tap the icon, or press Run in Xcode again. The app opens. From now on it starts like any other app, with or without the cable, until its seven days are over.

If you leave the cable in and run from Xcode, you also get the debugger: Apple's documentation says Xcode opens a debugging session where you can step through your code and inspect variables while the app runs on the phone.

What a free Apple ID does not allow

The free route is meant for trying your own work on your own devices, and Apple draws the line clearly:

  • Seven days. Apple says the profiles that let a free account's apps run expire 7 days from issuance, and that you need to rebuild and reinstall after that.
  • Three apps per device, and up to three devices.
  • Ten App IDs, each expiring after seven days. A new bundle identifier uses one.
  • Some services. Push notifications, iCloud, Sign in with Apple and In-App Purchase belong to the paid program. It is commonly reported that Xcode refuses to sign a project for a Personal Team while one of those capabilities is switched on; remove it under Signing & Capabilities.
  • No sharing. TestFlight and the App Store need the membership.

When the seven days are up, the icon stays but the app does not open. Connect the phone and press Run again; Apple's support engineer on the Developer Forums confirms that is enough. If the weekly routine wears thin, the options are in why your iPhone app stops opening after 7 days, and the whole free list sits in our guide to free Apple developer account limitations. The paid program is $99 a year.

If something goes wrong

Common stops between Xcode and an iPhone, and where each is fixed
What you seeThe usual reasonWhat to do
The iPhone is not in the destination menuIt is locked or not pairedUnlock it, tap Trust, open Manage Devices
Xcode asks for a development teamNo team is chosenPick your team under Signing & Capabilities
Developer Mode is missing in SettingsThe phone has not been paired yetConnect it and let Xcode see it
Untrusted DeveloperYour Apple ID is not trusted on the phoneSettings, General, VPN & Device Management
The maximum number of apps has been reachedThree of your apps are on the phoneFree a slot
You may create up to 10 App IDs every 7 daysTen identifiers were registered this weekReuse an identifier

If you do not have a Mac

Everything above happens in Xcode, and Xcode needs a Mac. If you have the idea but not the Mac, the building has to happen on someone else's.

That is what Borel does. You describe the app, Borel writes it in Swift with SwiftUI and compiles it with Xcode on its own Mac, and you try it in an iPhone simulator in your browser. To put it on your iPhone, Borel Companion runs on Windows or a Mac, signs the app with your own Apple ID and installs it, over a cable to begin with and over Wi-Fi after that. Installing with Companion comes with a paid plan, Pro, from $25 a month; a free Apple ID works, with the same seven days and three apps, and Companion signs each app again before the seven days run out, while it runs and the iPhone is on the same Wi-Fi or the cable.

The two routes meet, too. An app made in Borel is ordinary SwiftUI, and you can download the project on any plan with an XcodeGen file that opens in Xcode. If you later get a Mac, or a friend with one offers an afternoon, the seven steps on this page work on that project as they are.

A message that describes an app instead of coding it
Make an iPhone app for my weekly groceries. One list, grouped by aisle. I add an item by typing or by picking from things I bought before, and I tick items off in the shop. Keep everything on the phone, no account.

The bottom line

Running your own Xcode app on your own iPhone costs nothing: add your Apple ID to Xcode, let it manage signing, connect the phone, turn on Developer Mode, press Run and trust your Apple ID in Settings. The free account gives you seven days per install, three apps per device and ten App IDs a week, which is plenty for trying an app and living with it. When you want it on other people's phones, that is the day to look at Apple's membership.

No Mac yet? See how to make an iPhone app without a Mac.

Questions people ask

Can I run my Xcode app on my iPhone without a paid developer account?

Yes. Sign in to Xcode with any Apple ID and it becomes a Personal Team that can sign apps for your own devices. Each install opens for 7 days.

Why does my app stop opening after a week?

Apple's free accounts sign with profiles that expire 7 days from issuance. Connect the iPhone and press Run in Xcode again for another 7 days.

Where is Developer Mode on iPhone?

In Settings, Privacy & Security, under Security at the bottom. Apple says it only appears once the iPhone has been paired, so connect it to Xcode before you look.

Why is my iPhone not showing up in Xcode?

Unlock the phone, tap Trust when it asks about the computer, and choose Manage Devices from the run destination menu to pair it. If Xcode asks for platform support, click Get and wait for the download.

Do I need a cable?

A cable is the simple way: plug the iPhone in, unlock it and tap Trust. Apple's guide describes running on devices that are paired with your Mac.

Can I put the app on a friend's iPhone this way?

It is meant for your own devices: a free account registers up to 3, and each install lasts 7 days. For other people, Apple's route is TestFlight, which needs the Developer Program.

Can I do this without a Mac?

Not with Xcode, which runs only on macOS. A service that builds on its own Mac, such as Borel, can make and install an app from a Windows PC.

I think an app only feels real once its icon is on your own Home Screen.

– Sigsten

Build your own grocery list

Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.

An app for my weekly groceries: one list grouped by aisle, items I can tick off in the shop, and suggestions from things I bought before, saved on my phone.
Build this app

Keep reading