I have been trying to install an .ipa file into my physical iOS device using Ad Hoc distribution (without having to upload to App Store or TestFlight) but unfortunately I have been stuck with a few errors, for example: This app could not be installed because its integrity could not be verified.
Asked
Active
Viewed 3,846 times
5
Ben Butterworth
- 13,650
- 4
- 61
- 95
-
1. You need to have the device uuid in the provisioning profile. 2. Export the ad-hoc build 3. Plug your phone into your Mac. 4. Drag and drop the exported ipa onto the phone in the finder sidebar. – Paulw11 Aug 28 '21 at 21:43
-
Dragging the ipa onto the iPhone on the sidebar doesn't actually work for me. I had to use the Apple Configurator app. Thanks for adding the other pre-requisites – Ben Butterworth Aug 28 '21 at 21:49
-
1It does work, but you can't just drag it to the phone name in the sidebar as I suggested. You have to click on the phone in the sidebar so that the window is showing the phone details, then drag the IPA from another finder window into the phone details - The icon will get a green + and you can drop it to install. – Paulw11 Aug 28 '21 at 21:58
-
Thanks! That's definitely easier than Apple Configurator 2 – Ben Butterworth Aug 29 '21 at 06:34
1 Answers
4
Took me a while to find this out. There were a lot of references to using iTunes, which is no longer available, and no references to using Finder, or alternatively Apple Configurator 2.
Prerequisites:
- Your device is added to your provisioning profile. This is automatically done by Xcode when you select the device and build the app onto the device.
- Plug your device in
- Archive the application (create the
.xcarchive): Select the target device (e.g. arm64/ a physical iPhone 12) and archive the app:Product>Archive - In the
Organizerswindow, clickDistribute App, and selectAd Hoc. Continue with the defaults options or customise to your liking. This should create a folder containing a.ipafile.
Main steps:
As Paulw11 said in the comments, you can do this in Finder. Select the device in Finder and drag the .ipa file onto the device details.
More complicated alternative:
- Install Apple Configurator 2. Drag the
.ipafile found in the exported directory in finder (exported from Xcode) onto the iOS screen inside the Apple Configurator 2 window, and the iOS app will be installed:
Finally, you should see this step, and the application will be available on your home screen.
Command line: As How to install an ipa/app file into iPhone with command line? states, if you have Apple Configuration 2 installed, you can open it and click "Apple Configurator 2" on Menu Bar, and install Automation tools. Then, cfgutil is available to you,
- so you can run:
cfgutil install-app ipa-file.ipa
Ben Butterworth
- 13,650
- 4
- 61
- 95