iOS 8 - Can't Install Enterprise App

iOS 8 - Can't Install Enterprise App

Looking through the console of the phone whist attempting to install one of my apps, I discovered:

Sep  9 12:16:56 iPhone misagent[94] : attempt to install invalid profile: 0xe8008011
Sep 9 12:16:56 iPhone installd[40] : 0x100484000 -[MIInstallableBundle _installEmbeddedProfileInBundle:]: Could not install embedded profile: 0xe8008011 (Expired)

Reasons unbeknown to me, apple invalidated half of my profiles and failed to alert me. After going into developer.apple.com find any invalid profiles:

Hit Edit - > Generate -> Download
Rebuild the application with the new profile.

However - The bad news still at least one of my apps is failing to install. Looking through the console gives me nothing. I am convinced this is an apple bug so have filed a radar: 17622725

I hope your issue is a profile problem otherwise we may have to wait until tonight 1800GMT to see if apple have fixed it.

EDIT

With iOS8 GM - I just get Waiting... - I will keep you informed with the bug report progress.

EDIT

After troubleshooting a few of fixes have been found:

Fix 1

As of iOS8, if the images you are linking to in the manifest plist do not exist - Apple will not install the application on the phone - The manifest being the file that you link to on the download page: itms-services://?action=download-manifest&url={url}

Make sure both full-size-image and display-image exist:


kind
full-size-image
needs-shine

url
https://{path_to_real_image}


kind
display-image
needs-shine

url
https://{path_to_real_image}

Fix 2

Enterprise applications will not install if they existed previously on iOS7 due to a bug with iOS8. An error appears in the console:

Ignore manifest download, already have bundleID: {bundle_id}

This can be fixed by temporarily changing the bundleID in the manifest file, but apple are aware as they marked the bug report as duplicated. After internal tests you an also fix the problem by resting the home screen layout General -> Reset -> Reset Home Screen Layout

Fix 3

If you see the application get into the installing... stage as opposed to loading... almost certainly the problem is the embedded provisioning profile has expired, to fix the download you will need to re-archive you application with a new, updated provisioning profile.

Fix 4

If you see the application get to the installing... stage and your provisioning profile is valid - Download the application whilst attached to your console. (Xcode 6 > Window > Devices > Bottom Left Button [v]), You will probably find that the install failed with Verification Stage Failed a little below will be the error message. In my case (Entitlements found that are not permitted by provisioning profile) - For this error goto developer.apple.com and update your App Identifier to include the correct service. For me App Groups needed to be enabled. Then regenerate your provisioning profile

iOS 8.1 Can't install OTA Enterprise app - Unable to download app

I tried all combinations of answers and solutions for iOS 8.1. both on iPads and iPods with getting no step further. The solution that works is using apples testFlight.
I think that the old way is meant not to work so developers would slowly switch to testFlight.
I wasted two working days, hope this helps you rather then wasting time.

About testFlight: testFlight apple page

This simple tutorial lead me: iOS8 testFlight tutorial

UPDATE 1 (24.05.2015):

The enterprise distribution is working now for me.My colleague updated the SSL on the server twice. He updated some two keys that were used for SSL authentication since some certificates have been changed and updated. Also the distribution works on the following devices:

iPod (4th,8.2),iPhone 5S(8.3), iPad 2 (8.3), iPad 4(8.3).

However it doesn't work and doesn't give any error report (or error line) in Xcode - Window - Devices iPad 3 Console. I have been using successfully uploaded my app using Xcode 6.2+ IDE (currently 6.3.1.). In all cases no default plist file was added and I used the plist file from here : Xcode 6 enterprise plist file example

iOS 9.0.2 - Can't Install Enterprise App -Unable to Download App (app name) could not be downloaded at this time

Apple has silently changed how Enterprise Distribution works several times, so knowing the answer to this question will not actually benefit you in the long run. How to find the answer to your question the next time will benefit you most.

Connect your device with the shiny new iOS version to your Mac running Xcode, and open the Devices organizer. Select the device, and optionally clear the log. Now open your app distribution page and try to install the app (clear any previous versions of the app off the device first), and keep an eye on the log output. Here you will find hints as to what you need to change.

For iOS 9.1, I saw the error: BundleValidator: Failed bundleIdentifier: com.example.appName.XXXX does not match expected bundleIdentifier: com.example.appName, which means that the bundle-identifier in the project plist file did not match the Bundle Identifier from the project. I remember adding .XXXX to the bundle identifier in the plist file last time I had to fix Enterprise Distribution, for iOS 8.0, i think. Fixing this was easy, just remove the offending .XXXX -- but then it dosen't work for iOS < 9.0

For the time being, I maintain two plist files for distributing the same ipa file, one for iOS 8.+, and another for iOS 9.+

Can't install enterprise app ipa on iOS8+

I fix the problem by doing the next steps:

  1. Remove all the Provisioning Profiles from my mac using iPhone Configuration Utility app (download from here).

  2. Remove all the certificates that are related to this app from the Keychain Access.

  3. Open Xcode and hit Clean and Clean Build Folder by holding Alt while the Product menu is open.

  4. Restart your mac

Hope that helps. Enjoy.

iOS8 Enterprise app install issue

I found the solution to my problem and here is everything I did to get it working.

Our setup + backstory:

We have an AWS webserver with an HTTPS website running on it. Since iOS 7.1 our manifest (plist) is hosted on the server but the IPA was stored on an FTP and this worked fine throughout iOS 7. The introduction of iOS 8 meant the FTP could no longer be used for the IPA so we wanted to move it onto the webserver the same as the PLIST. Before doing this though we had other issues that were preventing the iPad from even trying to download because I was getting the following error message:

Ignore manifest download, already have bundleID: {bundle_id}

The Fix:

Firstly I followed the steps in this question and made sure that both full-size-image and display-image exist in the manifest file.

I then made some other changes to the manifest file based on another answer in this question. These changes were to the bundle-identifier and bundle-version

In doing this my iOS 8 test iPad would pick up the install display the shadow icon but then fail to install, however the iOS 7 iPad would still install I saw the following message:

: Invalid URL scheme for background tasks: ftp. Valid schemes are http or https

Which led me to move all the files onto the webserver, but then both iOS 7 and iOS 8 wouldn't install.

I originally thought one of the above errors / warnings might have been causing it to fail but couldn't seem to find an answer. After hours of searching and trying to fix I had an epiphany because when trying to view the IPA in a web browser I was getting a 404 and I remembered we had a similar issue when moving the PLIST file onto the server. To fix this I had to add the IPA MIME type on the IIS 7 server. As soon as I did this my 7 build of our app will download an install on both the iOS 7 and iOS 8 iPads. The correct MIME type for an application/octet-stream

Enterprise App Update Distribution on iOS 8

I've also encountered this problem with our app distribution. We were able to fix this issue by 'faking' the bundle identifier inside the .plist using for download distribution, keeping our ipa bundle identifier the same.

For example, in your plist:

bundle-identifier
com.mycom.MyApp
bundle-version
0.2.2

change com.mycom.MyApp to com.mycom.MyApp.ios8fix

The app will be installed using a new app icon, which will disappear after install.

If you already have an install of the app, you will even see a new app icon during install. After the installation this icon disappears, but your already existing version of the app will be updated.
With a clean install the installation icon will disappear and the installed application icon will appear in place.

It looks like iOS 8 is caching the bundle identifiers and compares the requested installs with these cached ones. Most of the times you'll only see an popup asking for install, but nothing happens.

As Sean already noticed, this appears with xCode 6 GM and the official iOS 8 version. Devices which never installed your application before will have no problems to install the app.



Related Topics



Leave a reply



Submit