Test an iOS app on a device without the Apple Developer Program or jailbreak
Codemia Knowledge Hub ·
You can test an iOS app on a physical device without the Apple Developer Program by signing in to Xcode with a free Apple ID. Xcode's "free provisioning" signs the app with a personal development certificate at no cost; the trade-off is that the app expires after 7 days and must be re-signed.
The minimum workflow:
- Sign in with any Apple ID in Xcode (no paid enrollment needed).
- Connect your iPhone or iPad via USB.
- Select your device as the build target and click Run.
- Trust the developer certificate on the device under Settings.
Free provisioning has been available since Xcode 7 (2015) and works with the current Xcode.
Free provisioning with Xcode, step by step
What you need
| Requirement | Details |
| Mac | Any Mac running a supported macOS version |
| Xcode | Latest stable version from the Mac App Store |
| Apple ID | Any Apple ID (free, no developer enrollment) |
| iOS device | iPhone or iPad with a compatible iOS version |
| USB cable | Lightning or USB-C depending on the device |
1. Add your Apple ID to Xcode
Open Settings (Preferences on older versions), select the Accounts tab and click +:
Xcode creates a personal team for your Apple ID. It can sign apps for development but cannot distribute them to the App Store or TestFlight.
2. Configure project signing
Select the target, and under Signing & Capabilities:
- Check Automatically manage signing.
- Select your personal team from the Team dropdown.
- Set a unique Bundle Identifier (e.g.,
com.yourname.myapp).
Xcode generates the provisioning profile and signing certificate automatically. If the bundle identifier conflicts with an existing app, change it.
3. Connect the device and build
Connect the device via USB, select it from the device dropdown next to the scheme selector, and click Run (Cmd+R). The first deployment may take a minute while Xcode processes the device's symbol files; later builds are faster.
4. Trust the developer certificate
The first time an app from your personal team runs, iOS blocks it with an "Untrusted Developer" error. Fix it on the device:
This is needed once per Apple ID per device.
5. Enable Developer Mode (iOS 16+)
iOS 16 and later require Developer Mode:
The device restarts; confirm enabling Developer Mode when prompted. Without it, Xcode cannot install apps.
Limits of free provisioning
| Limitation | Details |
| App expiration | Apps expire after 7 days and must be re-deployed |
| App limit | Maximum 3 apps per Apple ID per device at a time (10 app IDs per week) |
| No App Store distribution | Cannot submit to App Store or TestFlight |
| Limited capabilities | No push notifications, App Groups, iCloud, HealthKit, Apple Pay, etc. |
| Device limit | Up to 3 devices registered per free account |
| No wildcard App IDs | Each app needs a unique bundle identifier |
Capabilities that fail to sign
If your app needs these for core functionality, you need the paid Apple Developer Program ($99/year).
Re-signing after 7 days
When the 7-day provisioning profile expires, the app crashes on launch with "Unable to Verify App". Run it from Xcode again:
App data (UserDefaults, Core Data, the documents directory) survives re-deployment as long as the bundle identifier stays the same.
Wireless debugging after the first USB connection
The Mac and device must be on the same Wi-Fi network. It is slower than USB but convenient for testing UI interactions untethered.
With iOS 14+ and Xcode 12+ there is also:
When the Simulator is enough
For testing that does not need device hardware (camera, GPS, accelerometer, NFC), the Xcode Simulator needs no signing at all:
| Feature | Real Device | Simulator |
| CPU architecture | ARM (Apple Silicon) | x86_64 or ARM (matches Mac) |
| Performance accuracy | Real-world | Faster than actual device |
| Camera, GPS, NFC | Available | Simulated or unavailable |
| Push notifications | Requires paid account | Drag-and-drop APNs payload |
| Memory pressure | Real constraints | Generous (uses Mac RAM) |
| Signing required | Yes (free or paid) | No |
Use it for layout, API integration and automated UI tests, but test on a real device before shipping, since performance differs significantly.
Fixing common install errors
"Unable to install app: device is not available"
Usually Developer Mode is off (iOS 16+). Enable it in Settings > Privacy & Security > Developer Mode.
"Failed to register bundle identifier"
Another app or team already owns the identifier. Pick a unique one:
"This app cannot be installed because its integrity could not be verified"
The provisioning profile expired after 7 days. Re-run the app from Xcode.
"Signing requires a development team"
No team is selected. Choose your personal team under Signing & Capabilities.
Mistakes that block testing
Not enabling Developer Mode on iOS 16+. The most common blocker for first-timers, and the error message does not always make the cause obvious.
Forgetting to re-sign after 7 days. The app stops launching with no clear error, and it looks broken when it only needs re-deploying.
Adding capabilities free provisioning lacks. Push notifications or iCloud entitlements cause a signing error with a free account. Remove the capability or switch to a paid account.
Judging performance only in the Simulator. It runs on the Mac's CPU and memory; real devices behave differently, especially for graphics-heavy apps.
Using a generic bundle identifier. com.example.app will conflict with other developers. Use your name or domain.
Related reading
- Text inset for UITextField?
- Text inside a VStack truncates when it's not supposed to in SwiftUI
- TextView bold via XML file?
- The algorithm behind Google's PhotoSphere on Android 4.3/4.4
- Test Kafka Streams topology
- Test parameterization in xUnit.net similar to NUnit
- The and -- operators have been deprecated Xcode 7.3
- The Android emulator is not starting, showing invalid command-line parameter
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.