loading... application installation on iPad got stuck - ios

We are new to iOS development and this is our first application for iPad that we are developing for our organization.
We have developed app in Xcode 4.1 with iOS SDK 4.3.2 .
We have created provisioning profile and added 4 iPad device UDIDs in the profile.
We have created app.ipa file and kept it on our internal webserver ( along with app.plist ). Then we have created simple html file which contains pointer to app.plist.
We try to install the app on the device by accessing the html file URL through safari. However the application gets stuck in "loading... " state and after long time it gives error unable to download the application. We have checked the network connectivity , the webserver logs and everything seems to be fine.
Another odd behaviour we have observed is that while the application installation is in loading state and we connect the iPad to the development machine. When itunes prompts for syncing the device we cancel the sync. Then we disconnect the cable and connect and again when it prompts for syncing we again cancel it. At this time the application gets installted. But this is happens on only one iPad. On 2 other iPads it doesn't get installed and stays in loading state. On one iPad it got installed without issues.
We are now stuck because we have to distribute this application to many users in our organization and not able to do so.

You could check the following
The provisioning file is for ad hoc distribution
The provisioning file is selected in the Code signing Identity -> Release section of the build settings of your project
You selected Product -> Archive, then pressed "Share" when the Organizer window opens.
Next step: make sure the provision file is selected
Next step: Select "Save for Enterprise Distribution". The application URL has to be the exact web address on the ipa file
You can find more detail about the process in this article

Thanks all for your answers which pointed to many useful resources for us newbie developers.
I found the cause of my problem. The device requires to connect to apple sites to verify the certificate. Since the device was in our internal wireless network and I had removed proxy settings from the device it was not able to connect. Once I gave the proxy settings it installed without problems. One point to be noted though was it was not working with proxy authentication enabled hence I had to enable IP address based access for the device.
Thanks once again for you responses.

You have problem with your provisioning profile.
The problem is that you don't sign app properly and iOS5 has changed notification that app cannot be installed with loading message only, on iOS4 it was message and app would be deleted from springboard.
You need to set in project properties under build settings code signing identity on the ad-hoc certificate that you have created. When you build app for archive sign it again like you did before with the same certificate and then try to install on device.
I use beta builder for creating index, plist and other files for web server, but you can use whatever you like.
http://www.hanchorllc.com/2010/08/24/introducing-ios-beta-builder/

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?

Can't verify app on iPhone when I want to run my own app iOS9

I created an app using Xcode and I want to run it on my iPhone instead of the simulators. The app has successfully installed in the phone, but when I click it it says "untrusted developer", xCode gives error "Process launch failed: security". So I went to Settings> General> Profile on my phone and I trusted the app, however the application is listed as "Not Verified" and when I click "verify app" nothing happens, and I still can't run the app.
There are some procedures you need to follow to install the build in iOS 9 using Free provisioning
Open the XCode->Preference->Accounts
Click the + button in the bottom left, add your apple id
Your apple id is now added. Click your apple ID, tap the 'View Details' in the right side detail.
Click the 'create' button near the iOS Develoment identity.
Then goto your project setting, search for code signing identity, change its value to 'iOS Development'
Run the app again, Verify/Trust if necessary
I've had this problem a few times. The issue seems to be on Apple's side - verifying apps requires a connection to their server, which was down earlier today. It should be up now (at the time of this posting). Looks like you just have to wait it out when this happens, unfortunately.
I usually encounter this problem when using a web proxy that intercepts SSL connections using a custom certificate (fe Burp or company proxy).
When installing the app, the following happens (I think):
XCode builds & installs the application
iOS automatically tries to verify the app
iOS uses SSL pinning and therefore can't validate the app
When you press "validate app" now, the internal state is somewhat corrupted
So in my case, I had to take the following steps:
Connect directly to the internet without proxy
Install the application
Settings -> Profiles -> my profile -> Trust developer
The app is already automatically validated
Switch to the proxied network
Launch app
I do believe this is some kind of bug in iOS where the validation state is somewhat corrupted because of failed SSL pinning.

enterprise distribution of iphone app in xcode 6.3.1 [duplicate]

I have an enterprise application that is deployed via a web service. This application has installed on devices previously, but now it is refusing to install on all but one device. Many of my colleagues have downloaded the application without a problem through our web service, all this is, is a simple link on a webpage linking to an IPA file.
Steps already checked and taken:
Provisioning profiles valid.(both development and ad-hoc distribution)
Checked other devices (4s,5s) to make sure it does install properly.
Checked security to and from the device.
Checked connectivity to and from the device. ( Wifi, VPN, Cellular, )
Devices updated to 8.2 + , application target 8.2.
Checked the storage on the device to make sure its not full.
I am aware of installing the application through iTunes, however I have not yet had the opportunity to do so.
EDIT: I should mention that this application previously installed successfully on the very same device that I'm having a problem with now, This has only come around since a release made only recently.
Speaking from experience try these steps ...
Make sure you are serving the app using URL like itms-services://?action=download-manifest&url=http://example.com/App.plist
Make sure that the App.list points to the App.ipa over https connection
Make sure that the https connection uses valid SSL certificate from trusted Certificate Authority
If still does not work then ...
Connect the device to your Mac
Open Xcode
Open Window > Devices
In Devices window find your device in the left panel and select it
On the bottom left of the right panel in the window click the "up arrow in box" icon, this will bring up the Device console
Clear the console
Try to install the app on the Device and watch the logs for error messages

Enterprise Application Not installing on iPhone 5s

I have an enterprise application that is deployed via a web service. This application has installed on devices previously, but now it is refusing to install on all but one device. Many of my colleagues have downloaded the application without a problem through our web service, all this is, is a simple link on a webpage linking to an IPA file.
Steps already checked and taken:
Provisioning profiles valid.(both development and ad-hoc distribution)
Checked other devices (4s,5s) to make sure it does install properly.
Checked security to and from the device.
Checked connectivity to and from the device. ( Wifi, VPN, Cellular, )
Devices updated to 8.2 + , application target 8.2.
Checked the storage on the device to make sure its not full.
I am aware of installing the application through iTunes, however I have not yet had the opportunity to do so.
EDIT: I should mention that this application previously installed successfully on the very same device that I'm having a problem with now, This has only come around since a release made only recently.
Speaking from experience try these steps ...
Make sure you are serving the app using URL like itms-services://?action=download-manifest&url=http://example.com/App.plist
Make sure that the App.list points to the App.ipa over https connection
Make sure that the https connection uses valid SSL certificate from trusted Certificate Authority
If still does not work then ...
Connect the device to your Mac
Open Xcode
Open Window > Devices
In Devices window find your device in the left panel and select it
On the bottom left of the right panel in the window click the "up arrow in box" icon, this will bring up the Device console
Clear the console
Try to install the app on the Device and watch the logs for error messages

Caching of provision profiles issue in iOS

I am using In-House subscription of Apple. I built app and distributed it via web link. Everything was okay, so I could install this app by calling manifest from iPhone's safari browser. Then I revoked certificate and remove provision profile - that causes my app to fail to run (then I found that this happens all the time when you revoke certificate.)
To make my app working again I created new certificate and in-house provision profile - then I resigned my current .ipa file and replaced it on web server.
Then I tried to install app on different devices
I installed it on 1 iPad and it works, I see in settings new provision profile appeared.
I tried to install same app on 2nd iPad and it fails during installation process. And what is strange it installed old provision profile to my settings (I think this is some kind of caching or whatever). I deleted all apps, all profiles and reboot - but no luck - I can't still install this app to this particular iPad.
May be someone had same issue, please assist me how should I clean cache if it's related to caching issue.
P.S. I want to fix it without wiping the device
Is your second iPad connected via USB to your development computer while you're doing this testing? If it is, Xcode's Organizer will often just restore the provisioning profile that you're trying to delete. If this is the case, try deleting it from the Organizer as well.

Resources