5 November 2018 · 3 min read
Installing iOS Test Builds onto Devices
iOSXcodeTestingApple
This short note describes how to install an iOS app developed in Xcode version 10.1 (10B61) onto an iOS device that you wish to use for testing. Note that you could install your app onto the target device by using Xcode instead but this is not always an option; for instance, you won't be able to do this if you want to install your app on a colleague's device, which you don't have physical access to.
The recipe
- Go to the Apple Developer website.
- Add your iOS device's UDID in the Devices section. As of a couple of months ago, you now need to use the Apple Configurator 2 app to get your device's UDID.
- Find the developer certificate that you have been using in Xcode to sign your app. Note its name — you will need it when creating your provisioning profile.
- Add an app identifier that matches your app's bundle identifier. E.g. if your bundle identifier is
com.mystartup.myapp, then use this as your app identifier's ID value. - Create a provisioning profile. This links the developer certificate to the provisioning profile.
- Select the 'iOS App Development' type.
- Select the app identifier that you have just created.
- Select your developer certificate.
- Select the device UDIDs that you wish to target for your app's install.
- Give the profile a name.
- Download the provisioning profile and double-click on it to make it available in Xcode.
- In Xcode, associate the provisioning profile with your app's project.
- Disable automatic code signing management.
- Select the installed provisioning profile for all signing configurations — these appear once you turn off automatic code signing.
- Build the app.
- Select Product > Archive.
- When the archive is created, select the new archive and click Distribute App.
- Select Development as Method of Distribution.
- Use App Thinning if you want to target a particular iOS device. If selected, this will reduce the overall file size of the output file.
- Select the developer certificate that you have used to sign your app — you noted its name above — and your recently installed provisioning profile.
- Once created, choose a location to save your build. The build file that you will need to install the app on iOS devices has an
.ipaextension.
- Install the app on a target device.
- Install Apple Configurator 2.
- Connect your iOS device to your computer.
- Drag and drop the
.ipafile onto your device in the UI to install it.
If everything has gone to plan, the app should launch when tapped. Otherwise, you have a problem.