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

前端 未结 4 654
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  既然无缘
    2020-12-17 21:48

    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
        
                
    

    ....

提交回复
热议问题