iOS Question File Data Protection

Discussion in 'iOS Questions' started by schimanski, May 16, 2018 at 4:32 PM.

  1. schimanski

    schimanski Well-Known Member Licensed User

    Apple uses a system named File Data Protection to protect the app-data in the directories "documents/“ und „library/“. There are four types von file-protection:

    NSFileProtectionCompleteUntilFirstUserAuthentication and

    Is there a way to set the file protection by code?

    Thanks for answer!
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. Enable data protection in your App Id (you might need an explicit app id):


    2. Create a new provision profile.

    3. Add to your project:
    #Entitlement: <key></key><string>NSFileProtectionComplete</string>
    This seems to work though it is not clear how it can be tested.
  3. schimanski

    schimanski Well-Known Member Licensed User

    Wow..That's top!