UIDocumentInteractionController behaving differently on iOS 9, preventing app features from working

Originator:Trimix2013
Number:rdar://21614828 Date Originated:6/30/2015
Status:Open Resolved:
Product:iOS Product Version:9.0 beta 2
Classification: Reproducible:Always
 
Summary:
Our application allows the user to preview a document, and then send it to another app using UIDocumentInteractionController.  However, we need to do some transformation on the document before it is actually sent to the other app, so we implemented the delegate method willBeginSendingToApplication:, in which we apply the transform to a copy of the original document and change the URL property to point to the modified file.  This works correctly in prior versions of iOS up to and including 8.4.  However on iOS 9 the change to the URL property is not recognized, and the original un-modified document is sent.

Steps to Reproduce:
1. Open the attached sample project
2. Run the app on an iOS 8 device, and tap the "Open" button to send the document to any other app.
3. The receiving app should get a different file than the original - this is good.
4. Run the app on an iOS 9 device, and repeat the process.
5. The receiving app gets the un-modified file - this is bad!

Expected Results:
Changes to the UIDocumentInteractionController's URL property are correctly honored.

Actual Results:
Changes to the UIDocumentInteractionController's URL property are not correctly propagated.

Version:
iOS 9 Beta 2, build 13A4280e

Notes:


Configuration:
iPad 2 running iOS 8.4, iPad Air 2 running iOS 9 beta 2 

Attachments:
'DocTest.zip' was successfully uploaded.

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!