Completion handler not being called while using UIDocument saveToUrl

Originator:cwrenniks
Number:rdar://12364611 Date Originated:24-Sep-2012 07:40 PM
Status:Open Resolved:
Product:iPad SDK Product Version:iOS 5.1
Classification:Serious Bug Reproducible:Always
 
24-Sep-2012 07:40 PM Cameron Skinner:
Summary: With XCode 4.5, deploying to iOS 5.1 ( using 5.1 simulator ), the saveToUrl method on UIDocument fails to call the completion handler block passed into that method.

Steps to Reproduce: 

1. Open the project included with this bug report. 
2. Set the simulator to iOS 5.1.
3. Run
4. Enter text into text field
5. Click the "save" button

Notice that the save button remains in a selected state, app appears hung.

Expected Results:

Should have seen the "Got the blocke" and "Done" message in the console output. If you switch to the iOS 6.0 simulator, that is indeed what happens ( i.e., everything is working when deploying and using the iOS 6.0 simulator ).

Actual Results:

App appears hung, as the completion handler is never invoked.

Regression:

This used to work before upgrading either to Lion 10.8.2, iTunes 10, or XCode 4.5. It was working with Xcode 4.5GM.

Notes:

24-Sep-2012 07:40 PM Cameron Skinner:
'SaveToUrlProblem.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!