Xcode 12.0 beta doesn't list out data protection options

I'm trying to change the data protection options in our app but it doesn't list anything when that capability is viewed in the Signing & Capabilities tab. How do we get this to work correctly if Xcode can't render it properly?

Replies

It's probably worth filing a feedback. In the meantime, you can open the .entitlements file in any text editor (luckily it's a plaintext plist file) and check/modify the settings manually (all available options are nicely documented https://developer.apple.com/documentation/foundation/nsfileprotectioncomplete).

i.e.
Code Block
<dict>
<key>com.apple.developer.default-data-protection</key>
<string>NSFileProtectionComplete</string>
</dict>


Once you have your .ipa file ready for submission, you can also inspect the entitlements by unzipping the .ipa and calling
Code Block
codesign -d --entitlements :- <path_to_app_bundle>

The options were not listed in Xcode 11.5 neither. I think it was a deliberate choice to avoid mismatches (with Provisioning Profiles). Xcode might automatically sync this setting with the App Identifier (not sure about the details).