Data Protection / NSFileProtectionComplete - successfully supported through entitlements.plist?

前端 未结 4 655
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 21:21

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

4条回答
  •  Happy的楠姐
    2020-12-17 21:22

    I have tried data protection using entitlements and it works fine. The trick is to make sure your entitlements file entry in your Xcode project is the same as that of your provisioning profile.

    Specifically, the following 2 settings in entitlements file and provisioning profile should be same:- "com.apple.developer.default-data-protection" - I have set this as NSFileProtectionComplete. "application-identifier" - I am not using wildcards in identifier though I think it should work as well.

提交回复
热议问题