I\'m looking to encrypt user data in an app, and the NSFileProtection mechanism looks perfect for this.
This SO Question / Answer thread pointed me at the WWDC 2011
It wouldn't work for me using the wildcard for the profile id (i.e. my.company.app.*) so had to create a new fully qualified one. It works for me with my Entitlements.plist looking like this:
com.apple.developer.default-data-protection
NSFileProtectionComplete
get-task-allow
and with my profile section for it looking like this: ....
application-identifier
xxx.my.company.app
com.apple.developer.default-data-protection
NSFileProtectionComplete
get-task-allow
keychain-access-groups
xxxxxxxx
....