Enterprise-signed apps on iOS 9 crash on launch, if previously run on an older OS

Originator:irons
Number:rdar://22292377 Date Originated:14-Aug-2015 01:26 PM
Status:Open Resolved:
Product:iOS Product Version:9.0 (13A4325c)
Classification:Serious Bug Reproducible:Always
 
Summary:
An enterprise-signed app, on a device that’s been upgraded to iOS 9 from iOS 8, crashes on launch until the profile is manually trusted, five levels deep in Settings.

Steps to Reproduce:
1. Install an enterprise-signed app on iOS 8.4.1.
2. Run the app on 8.4.1
3. Update the device to iOS 9 (currently beta 5, 13A4325c)
4. Try to run the app on iOS 9.

Expected Results:
The app should run. Worst-case, it should present iOS 9’s new and unfriendly “Untrusted Enterprise Developer” dialog, which expects the user to dig into Settings -> General -> Profile -> [Enterprise dev account], to tap a Trust button.

Actual Results:
The app crashes. The console log is the only way we were able to figure out what was going on. Here’s what it reports, with the important stuff on the second line:

Aug 13 15:49:00 Leela-5 amfid[317] <Error>: /private/var/mobile/Containers/Bundle/Application/FDCC85A2-8CE8-4070-8486-56CCD472609F/fancy-app.app/fancy-app not valid: 0xe800801a: This provisioning profile does not have a valid signature (or it has a valid, but untrusted signature).
Aug 13 15:49:00 Leela-5 com.apple.xpc.launchd[1] (UIKitApplication:com.blackpixel.fancy-app.enterprise[0x69a6][324]) <Notice>: Service exited due to signal: Killed: 9
Aug 13 15:49:00 Leela-5 assertiond[65] <Warning>: Unable to obtain a task name port right for pid 324: (os/kern) failure (5)
Aug 13 15:49:00 Leela-5 SpringBoard[106] <Warning>: Unable to register for exec notifications: No such process
Aug 13 15:49:00 Leela-5 SpringBoard[106] <Warning>: Unable to obtain a task name port right for pid 324: (os/kern) failure (5)
Aug 13 15:49:00 Leela-5 SpringBoard[106] <Warning>: Unable to obtain a task name port right for <FBApplicationProcess: 0x1aff5870; com.blackpixel.fancy-app.enterprise; pid: 324>
Aug 13 15:49:00 Leela-5 SpringBoard[106] <Warning>: Application 'UIKitApplication:com.blackpixel.fancy-app.enterprise[0x69a6]' exited abnormally via signal.

Regression:
I was able to reproduce this on an iPhone 5, upgraded from iOS 8.2 to 9b5, after a report from a user who upgraded an iPhone 6 from iOS 8.4 to 9b5.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!