I am looking to encrypt user data in an application, and the NSFileProtection mechanism looks perfect for this.
This SO question / answer thread pointed me to a video of WWDC 2011 iOS Application Protection , which gave "too good to be true" to establish data protection through the application through rights (see from 33 minutes).
So, I tried this for my iOS 5.x + application and ran into a problem when it complains about Invalid rights .
I set up data protection for a specific application through the Provisioning Portal and updated the Provisioning application, so theoretically everything should be installed, but I still get an error.
If I remove a specific FileProtectionComplete parameter from a right, the application will work without an Invalid right error.
In researching this, I also saw that some people get their applications rejected (the moment they download the binary), because it is not supported (or is it deprecated?). Please note that I specifically ask about Data Protection, not Passbook.
At this point, I think maybe this is true: "too good to be true." So, I am going to discard this magic rights flag and use the programmatic method of adding NSFileProtectionComplete as a recording parameter instead.
However, before I do this, can anyone confirm that they were able to successfully add data protection only using the "Rights" checkbox? Thanks.
ios entitlements data-protection
Snips
source share