Warning in log when presenting UIImagePickerController

Originator:ward
Number:rdar://17495647 Date Originated:28 jun 2014
Status:Open Resolved:
Product:iOS SDK Product Version:8.0 (12A4297e)
Classification:Bug Reproducible:Always
 
Summary:
When presenting a UIImagePickerController, The console log shows the following warning

Attempt to add read-only file at path file:///var/mobile/Media/PhotoData/Photos.sqlite?readonly_shm=1 read/write. Adding it read-only instead. This will be a hard error in the future; you must specify the NSReadOnlyPersistentStoreOption.

Steps to Reproduce:
1. Create an application with a single view
2. Add a button that calls this code as an action:

var picker = UIImagePickerController()
        picker.modalPresentationStyle = UIModalPresentationStyle.CurrentContext
        picker.sourceType = UIImagePickerControllerSourceType.PhotoLibrary
        picker.delegate = self
        picker.allowsEditing = false
        self.presentViewController(picker, animated: true, completion: nil)
3. Run the app, press the button and notice the warning in the log console when the picker is shown
 Attempt to add read-only file at path file:///var/mobile/Media/PhotoData/Photos.sqlite?readonly_shm=1 read/write. Adding it read-only instead. This will be a hard error in the future; you must specify the NSReadOnlyPersistentStoreOption.


Expected Results:
No warning

Actual Results:
The warning

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!