NSMetadataQuery 0 results on iOS 7 beta 5

Originator:garrett
Number:rdar://14698261 Date Originated:August 9, 2013
Status:Open Resolved:
Product:iCloud Product Version:iOS 7 beta 5
Classification:Serious Bug Reproducible:Always
 
Summary: NSMetadataQuery returns 0 results, even when I know there are files in iCloud, and I can see there are files in the ubiquity container using NSFileManager.

Steps to Reproduce: Have files in iCloud in an appropriately entitled app.  Run NSMetadataQuery to look for files.

Expected Results: I expect to see the metadata query return information about the file in iCloud.

Actual Results: NSMetadataQuery finishes gathering with 0 results, and never posts any did update notifications.

Regression: The same code would have the NSMetadataQuery returning the appropriate results in iOS 5, 6, and iOS 7 beta 1 through 4.  Beta 5 seems to have broken it.

Notes:

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!