NSURLBookmarkCreationWithSecurityScope nt available on iOS

Originator:maxseelemann
Number:rdar://18689735 Date Originated:17-Oct-2014 03:18 PM
Status:Open Resolved:
Product:iOS SDK Product Version:8.1
Classification:Serious Bug Reproducible:Always
 
Summary:
NSURLBookmarkCreationWithSecurityScope constant is required for UIDocumentPickerController users to keep bookmarks to shared files. However the NSURL constant for this is not publicly available.

Steps to Reproduce:
Try to create security scoped bookmark URL as advised by documentation: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentPickerProgrammingGuide/CreatinganOutstandingUserExperience/CreatinganOutstandingUserExperience.html#//apple_ref/doc/uid/TP40014451-CH3-SW3

Expected Results:
Everything goes as documentation advises.

Actual Results:
NSURLBookmarkCreationWithSecurityScope is declared as not available on iOS.

Regression:
Passing in the raw value (1 << 11) works, but this is ugly.

Comments

Are you sure? In my experience, the security scope works on iOS even without passing in this flag.


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!