How to install application from Xcode on iOS 10? - ios

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.

Related

How to install an IPA into an iOS device, e.g. for Ad Hoc distribution

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

My app won't start on an iOS device (exported .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

Built a react native app for ios, i cant push to appstore, xcode not showing distribute app options

When i go to window > organizer > Archives and select an archive, instead of "distribute app" i get "distribute content", see capture
Then when i click on distribute content since its the only option available instead of getting export options to app store i get only to options that ask me to export/save an archive to my computer, see capture.
My XCode version is 10.1, also i have done all configurations from setting my apple id, adding keys / certificates, etc.
I am stuck at this stage, Any help will be appreciated.
You need to follow below steps:
1) Make sure that you are a select device as Generic iOS Device on top Left corner
2) Click on Product on top menu
3) Click on Archive
4) After successfully Archive, You will get below window and click on Upload to App Store
5) Select your proper apple account and provisional profile and click on next.
You are done.
You are not archiving the app target. You’re archiving the wrong target.

Install IPA with iTunes 11

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)

iTunes Sync "MyAppName"Failed to install- IPA File

Recently, I have submitted my app and been accepted. However functionalities that I have built are not same with app version. Then I have contacted app developer and they told me as follows:
"To test that build, "Distribute…" it as an IPA, from the Organizer window in
Xcode. Then install the IPA by dragging it onto the iTunes icon on the dock
and syncing with your device."
Now, I created my IPA and drag and drop this file on Itunes and then to my iphone and it shows failing to sync error! I dont know what I am doing wrong? any guidance?
Try to install the IPA from Organizer instead of iTunes. To do it open Organizer from: Xcode > Window > Organizer, then select Applications under your device and click the + button to add the IPA.

Resources