I have an IPA signed for ad-hoc distribution. I can install it fine with Xcode Organizer by dragging it to the device. It also worked with iTunes <=10 by dragging onto the device name.
I'd like to install it via iTunes 11 though. Dragging it onto the device name, or the app section does not work. Any idea how to do it now?
In iTunes 11 you can go to the view menu, and "Show Sidebar", this will give you the sidebar, that you can drag 'n drop to.
You'll drag 'n drop to the open area that will be near the bottom of the sidebar (I'm typically doing this with both an IPA and a provisioning profile). After you do that, there will be an apps menu that appears in the sidebar with your app in it. Click on that, and you'll see your application in the main view. You can then drag your application from there to your device. Below, please find a video (it's private, so you'll need the URL) that outlines the steps visually: http://youtube.com/watch?v=0ACq4CRpEJ8&feature=youtu.be
For iTunes 11:
open your iTunes "Side Bar" by going to View -> Show Side Bar
drag the mobileprovision and ipa files to your iTunes "Apps" under LIBRARY
open you device Apps from DEVICES and click install for the
application and wait for iTunes to sync
I always use the iPhone configuration utility for this. Allows much more control and is faster - you don't have to sync the whole device.
For OS X Yosemite and above, and Xcode 6+
Open Xcode > Window > Devices
Choose your device. You can see the installed application list and add a new one by hitting +
for iTunes 12 and above (Yosemite) double click on IPA then browse your iOS device, on applist you will see the app, click the install on item.
For iTunes 11 and above version:
open your iTunes "Side Bar" by going to View -> Show Side Bar
drag the mobileprovision and ipa files to your iTunes "Apps" under LIBRARY
Then click on your device.
open you device Apps from DEVICES and click install for the application and wait for iTunes to sync
For iTunes 12, drag the .ipa file from the Finder to the Apps area NOT inside your device (in iTunes)... alternately, you can just double click on the .ipa in the Finder.
Important note: you have to change Version and/or Build number. Otherwise, you get no notice from iTunes at all...
Then switch to your device in iTunes, and install or update the application.
Then hit sync.
For osX Mavericks Users you can install the ipa-file with the Apple Configurator. (Instead of the iPhone configuration utility, which crashes on OSX 10.9)
Related
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.
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 Organizers window, click Distribute App, and select Ad Hoc. Continue with the defaults options or customise to your liking. This should create a folder containing a .ipa file.
As of iOS 16, you might need to enable Developer Mode in settings.
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 .ipa file 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
I created an app with Swift 5 in Xcode 10 and added the UDIDs of multiple iOS devices to my developer account (got the $99 one).
If I install my app on the device through Xcode, I can start the app, it's got an icon and everything works fine.
I also exported the app as .ipa file:
Pick the "Generic iOS Device" in Xcode (top left)
Create archive (Product - Archive)
Open the list of archives (Window - Organizer)
Highlight on the archive that was just created and click on "Distribute app"
iOS App Store - Next
Export - Next
Both options checked (include bitcode, upload app's symboles) - Next
Automatically manage signing - Next
Enter the password for the Mac Account twice
Click "Export" on the "Review myapp.ipa content" screen
Pick folder to "Export As" and click "Export"
Connect iOS device to Mac/PC -> iTunes opens
Click on the "iPhone" icon next to the dropdown menu (music, movies,...) to see the files on the device
Drag exported .ipa from finder/explorer to the left (as shown here) -> iTunes installs app on iOS device.
The app does show up on the home screen but it's only got a darker version of the default white/grey icon (it uses the actual icon if I install if through Xcode) and if I press on it, the icon "wiggles" once but the app doesn't open. There's no error message or any indication what's wrong.
The app's not in the "currently running apps" list (pressing the home button twice).
I changed the "Build Configuration" (Edit Scheme - Run - Info) from "Debug" to "Release" (suggested here) but that didn't help either.
Did I miss anything while exporting? How do I make the app start?
You can export it for for App Store submission via automation tools - which is often done in a company environment (multiple developers, multiple apps, CI / CD [Continuous integration / Continuous Delivery], etc).
If you're not doing that, you submit the app via Xcode.
Probably worth your time to read through https://help.apple.com/app-store-connect/
The problem was caused by picking "iOS App Store". Instead, as #DonMag pointed out, you have to use "Ad Hoc" if you want to export an .ipa file that you can drag into iTunes and install on your device - as long as you added the device's UDID to your developer account, of course.
Step 1-3 and 5-7 are the same (as in my question) but for step 4 do this instead:
Highlight the archive that was just created and click on "Distribute app"
Ad Hoc - Next
Next (Distribution options)
Next (Re-sign "myApp")
Enter your password twice
Export (Review myApp.ipa content)
Pick folder - Export
I did the following things:
Click Product - Archive in Xcode
On the created archive, click Show in Finder
Open ./AppName 13-07-2017, 18.15.xcarchive/Products/Applications/
Drag AppName.app to iTunes
Install the app on a device
But it doesn't install. I tried to do this thing on iOS 8 device and it worked, but on iOS 10 the app just disappears when upload is done. On iOS 11 Beta 2 it shows error "Unable To Install AppName" - "This app could not be installed."
How it could be fixed?
I built the app for Release
When you create the archive, you don't want to Show in Finder. You should click on the Export button on the right side of the organizer. This will give you a panel with four options. You probably want to select the 2nd one, "Save for Ad Hoc Deployment". Choose where to put the app and use that one with iTunes to install.
I sent the build via Crashlytics to my customer, but he can't instal it (I added the UDID of his device to provision profile). I think, that the problem is because he didn't setup his device for development (because my build is developempent, not production).
For example when I open in my iPhone Settings and scroll down I see Developer string:
But my customer doesn't see this string in his iPhone. How can he enable this menu item? (he doesn't have app macbook, so he can't enable it with xCode)
I know much time has passed since the question was posted, but it appeared still actual for me. Posting the answer for XCode 9 that I have checked.
So to enable Developer item in settings on iPhone follow the steps:
Download and install Xcode on your Mac.
Open Xcode on your Mac.
Plug your iPhone into your computer.
Open your iPhone's Settings app.
Scroll down and tap Developer.
I followed the steps to create an IPA of my app and would like to install via iTunes. After importing to library, I can see my app listed in the Apps section and a button says "Will Install" is on the right side of the list item. Also the app's icon appears in the iOS desktop view.
However, after clicking sync, which gave no errors, the app does not show itself on the desktop of the device.
I tried to deploy directly using Xcode's organizer and that worked fine.
I also tried to drag my provisioning profile into iTunes to no avail.
What am I missing here?
I'm using iTunes 11.0.2, Xcode4.6.2.
I've also tried distributing my app through iTunes to beta testers, but I didn't succeed- always had errors and errors.
Use the iPhone Configuration Utility for Mac OS X or for Windows- this works auto-magically, with no errors.
Guaranteed.