Which entitlement do I need for NSMetadataQuery

I am querying Spotlight metadata by NSMetadataQuery. As soon as the app is codesigned, I need a specific entitlement to run it .

Perhpas some exceptional entitlements like ...

com.apple.security.temporary-execption-files.home-relative-path.reasd-only


However , I cannot see any key in Info.plist that meets my requirement.

Do I have to contact Apple to get it ? What is the procedure ?

AFAIK you don't need any special entitlements to use NSMetadataQuery but it will only return results that are available based on your sandbox.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Which entitlement do I need for NSMetadataQuery
 
 
Q