Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enterprise app deployment doesn't install on iOS 8.1.3

After updating iOS 8.1.3, I tried to download, but getting error "Unable to download app" and "could not be installed at this time" messages appears.

What are changes between 8.1.2 and 8.1.3 which i have to take into consideration?

Download mode:
< a href="itms-services://?action=download-manifest&url=https://****.plist">

Thanks!

like image 966
Santiago Avatar asked Jan 28 '15 15:01

Santiago


People also ask

How do I download enterprise app on IOS?

Manually install and trust an enterprise app Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer.

How do I update the enterprise app on my iphone?

Go to Apps tab > Click on the Enterprise app which is to be updated. Click on the Settings drop-down (gear icon) on the top-right corner of the app details box > Select Edit from the drop-down list. Click on the option Change beside the IPA file. Upload the new app version > Click Save.


1 Answers

After a few hours wracking braincells, here's how I did it:

NOTE: I haven't currently tested this against iOS 8.1.2 or lower (proceed with caution!)

For apps that have ALREADY been signed with your OWN enterprise certificate, all you have to do (as mentioned by RAStudios in his edit) is to edit the manifest.plist:

Before:

<key>bundle-identifier</key> <string>uk.co.acme.AcmeApp</string> 

After:

<key>bundle-identifier</key> <string>S836XXACME.uk.co.acme.AcmeApp</string> 

For apps that have been signed by a third party that you're resigning with your enterprise certificate (this walkthrough is assuming the ipa file is AcmeApp.ipa, your entitlements file is entitlements.plist and your provisioning profile is provProvile.mobileprovision; all files are in the Desktop folder (Mac OSX), and S836XXACME is your team identifier):

Create a new entitlements.plist file:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>application-identifier</key> <string>S836XXACME.uk.co.acme.AcmeApp</string> <key>get-task-allow</key> <false/> </dict> </plist> 

Unzip the ipa:

cd ~/Desktop  unzip AcmeApp.ipa  

Remove the Code Signature:

rm -r Payload/AcmeApp.app/_CodeSignature/  

Copy in the mobileprovision file:

cp provProfile.mobileprovision Payload/AcmeApp.app/embedded.mobileprovision  

Codesign:

codesign -f -s "iPhone Distribution: ACME Corporation Limited" --entitlements entitlements.plist Payload/AcmeApp.app 

Zip it up as the resigned ipa:

zip -qr AcmeApp_resigned.ipa Payload/ 

You also need to amend the manifest.plist file as per the 'ALREADY' signed part earlier:

<key>bundle-identifier</key> <string>S836XXACME.uk.co.acme.AcmeApp</string> 
like image 177
Mark Chamberlain Avatar answered Sep 21 '22 13:09

Mark Chamberlain