Ipa installation loop - ios

I have created a minimal demo app from the default tab template and the generated apk works correctly on my Android.
I can get the generated .ipa to the iPhone 4 IOS 7 via iTune but when I try to run the app it just show a message 'installing' and the app stuck in an infinite “installing” loop.

This generally indicates a problem with the provisioning profile. Make sure that our device is one of the devices registered in the app's provisioning profile. Also, note that you can't install "app store" builds directly on your device. Those are meant for uploading to iTunes. You can only install development builds directly.

Related

Xamarin Deploying iOS App Ad Hoc Failing to Install

I am trying to deploy an iOS app Ad Hoc to an iPhone for beta testing. I've been developing the app on Windows VS, I have a Macbook air with all the necessary software (Xcode, VS, etc), and I have paired to it with VS on my Windows machine. I have also followed the following steps:
Created an Apple Developer account
Created an App ID with the bundle identifier as the same exact one as the one in info.plist
Created a signing certificate using my Macbook Air, downloaded it, and installed it into XCode
Created a provisioning profile with the App ID and the certificate, and made sure to include the device that I want to load the app onto.
Made sure everything above was set to "distribution" and "ad hoc" as needed.
Set Bundle Signing in my iOS project properties to Manual Provisioning, and selected the Signing Identity and Provisioning Profile to the ones that I created for this deployment.
Set the build to Release and the target to Remote Device
Ensured that the deployment target in info.plist was set to the highest available, which is 15.4, though my iPhone is at 15.6 (could this be the problem?)
Set the IPA Packaging Options to "Build iTunes Package Archive (IPA)"
Set "Include iTunesArtwork images and the iTunesMetadata.plist" to true in the same area
Successfully built the iOS project and produced a .ipa file
After all that, I've been trying to get the .ipa onto my phone, which is definitely the device I added to the provisioning profile.
I've tried two methods to do this, and both have failed:
Connecting my phone to my Windows machine and opening iTunes. Dragging the .ipa file onto the device. The app shows up on my phone, but when I try to open it, I get this error:
"This app could not be installed because its integrity could not be verified". Though it should have been.. The device is linked to the provisioning profile that was used to create the darn thing.
Connected my phone to my Macbook Air and accessed the device through XCode > Window > Devices and Simulators. I emailed myself the .ipa file and downloaded it onto the machine (the Microsoft docs explicitly state that emailing the .ipa should work just fine). In the "Intalled apps" section of the device, I clicked the little '+' and then pointed it to the downloaded .ipa. After a few seconds, it pops up an alert window that says "Unable to install *.iOS".
Other things I have tried since this has been a problem:
Recreating the above steps by re-registering my device, creating new certificates, downloading, installing, all that business.
Messing with the deployment target version.
Jumping out from behind the couch and startling it to make it do what it's supposed to.
I swear I'm done with Xamarin forever after this problem is solved, but all the headaches I've experienced have made me think twice about whether to even bother with .NET Maui haha thanks for any help you can provide
Firstly, the error This app could not be installed because its integrity could not be verified" may be caused by the proper certificate or the test devices are not visible in 'Devices' (UDIDs added) in developer.apple.com/account.I found two simialr issues, you can refer to them: link1, link2.
Secondly, have you follow this docs on how to generate the IPA file?

Is it possible to OTA install an iOS App that is signed with FREE Apple Dev Account

Note that I'm aware of these posts:
How to create IOS .IPA file and share it, using FREE Apple ID?
How to create ipa in xcode 6 without Apple Developer account?
I don't want to send the app to anybody for testing (not knowing their UUID).
My situation is this
I have the .ipa file. Can generate it using 'xcodebuild' command or by drag&drop the archive's .app file into iTunes
this .ipa is codesigned with my free AppleID
the provisioning profile, generated by XCode contains 3 device UUID
What I'd like to know: why I can't install this .ipa file to the device which UUID is presented in the provisioning profile.
If I try to install it using iTunes it starts to install, but after the progress bar (progress circle to be exact :P) on my device completes, the app icon just disappears and iTunes is stuck in the syncing process. No error message is shown.
I also tried to install it using diawi and got the error message "Unable to Download App". Although it shows me that my device's UUID is in the app's provisioning profile.
No, I believe the free account only allows you to build and install directly on the device with a development build. Also, those builds' provisioning profile expires after 7 days, so the OTA builds wouldn't last very long anyway.
If you want more details of why the install is failing, you should look at the device console during the installation. It will give you more details on the exact reason for the failure.

Unable to install iOS app locally on phone after moving to distribution stage

I have recently switched my app from the development to the distribution stage, but now I'm unable to install the app from Xcode to my test phone directly. The simulators work but I need to test this on an actual device, and testflight just takes too long for what I want to test.
When attempting to install the app to my phone via Xcode, I get this error
Failed to code sign <App Name>.
None of the valid provisioning profiles include the devices: <device name>
However, this device is set up on my developer account with the correct UDID and everything.
I'm wondering if its still possible to install my app directly from Xcode onto my device, and how to do so if possible.
Thanks!
Thanks to #Darklex, it turned out that under the build settings in my target application, I had somehow managed to change the code signing identity to iOS Distribution when I needed it as iOS Development.

Enterprise Deployment w/New Device

Attempting to deploy an Enterprise application wirelessly, with partial success. I do have the Enterprise Developers Kit, I've created the provisioning profile, added the devices ID's, uploaded the mobile provisioning profile, the ipa, and the P-list.
When I install the app through xCode directly onto the iPad, then attempt to download it wirelessly, it works fine. When I attempt to use it on a device that hasn't had that direct install, it downloads about 66%-75% of the way, right when the title shows up on the app, then says "Unable to Download Application".
Any ideas?
So, if you're on here, you should check to see if your iPad or iPhone is up to date with whatever version you archived it with on xCode. I updated the iPad to 5.1.1 and it installed just fine. My bad.

Workflow when using Appcelerator and IOS Deployment

I'm using Appcelerator to build smartphone apps, only iPhone right now but the plan is to expand into Android territory later.
I'm having some problems (as many others I understand) with understanding the provisioning profiles and ad-hoc deployment.
I have created a provisioning profile that contains the UDID's of my iPhone, my iPad and my sons iPhone. I build using Titanium Studio, and then select the "Install to IOS Device" to build an app and also an "ipa" file. Syncing with iTunes to my own devices.
I'm now planning to use TestFlight with the ipa file to distribute beta versions. It seems to work OK with the existing UDID's in the profile. The problem is now when I add more UDID's. Do I have to update the profile manually (on developer.apple.com), download it and fully rebuild my app for every added UDID? Or is there a simpler way? As I understand it, the profile is embedded into the "ipa" file, so does that mean I HAVE to rebuild?
"Do I have to update the profile manually (on developer.apple.com), download it and fully rebuild my app for every added UDID?"
Yep, it's exactly as you say. When you build your app, the provisioning profile the app is built against is embedded within the .ipa file. This is used to determine which devices can run the app, as TestFlight illustrates after the .ipa file is upload - all devices within that profile that match devices you've registered with TestFlight are listed. So after changing the device provisioning, you'll need to download and install the provisioning profile by dropping it into XCode, and then rebuild the app.

Resources