Binary Compatibility Regression: Legacy apps crash in UIActivityViewController

Originator:ricciadams
Number:rdar://18551893 Date Originated:2014-10-05
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
Legacy apps built in Xcode 5 and targeting the iOS 7 SDK now crash in iOS 8 when presenting a UIActivityViewController in a popover and selecting the 'print' activity.

The crash is due to an exception being thrown in:
-[UIViewController _windowControllerBasedPresentViewController:withTransition:completion:]

The exception is:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present inside popover with transition style other than UIModalTransitionStyleCoverVertical <UIActivityViewController: 0x1002135e0>.'

The same application works fine when built under Xcode 5 and running on iOS 7.1.

Do to other issues, it's currently not possible for us to build with Xcode 6 against the iOS 8 SDK (we are working on a full Adaptive UI version of our app which does work compile against the iOS 8 SDK, however).

Steps to Reproduce:
1. Compile the attached program in Xcode 5
2. Upload the program to an iPad running iOS 8
3. Tap "Show" in the top-left corner.
4. Tap the Share button at the bottom of the red modal vc that appears.
5. Tap Print.
6. Crash.

Expected Results:
No crash, legacy apps compiled with iOS 7 continue to work.


Actual Results:
Crash.  Legacy apps Just Work™

Version:
iOS 8.0.2 GM

Notes:


Configuration:
Any iPad running iOS 8.0 or 8.0.2

Attachments:

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!