Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chrono1081

macrumors G3
Original poster
Jan 26, 2008
8,811
5,686
Isla Nublar
Hi guys,

I've been digging through documentation and can't find a consistent answer to a seemingly simple question:

Does enabling Data Protection in the Capabilities section of my Xcode project automatically encrypt files in the documents directory when the device is locked?

I see some places say yes, other places say you need to declare an NSFileManager, and other places say NSFileManager is only if you need to encrypt certain files and for those who want all files encrypted, enabling the Data Protection entitlement under Capabilities is all you need to do, no tagging of files necessary.

I was hoping someone can clear this up for me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.