Some users has encountered this error:

  Domain: MarketingCloudSDKErrorDomain Code: 4 NSLocalizedDescription: <MarketingCloudSDK+Base.m:(438)> iOS file protection is enabled and data is not available even after 5 seconds of waiting

What can I do about that?

  • If iOS Data Protection is enabled and the file system is not available the SDK will attempt to retry the configuration for up to 5 seconds to give the device time to unlock and enable the file system. If it does NOT unlock, the error is returned and the SDK cannot continue to configure. See our troubleshooting section for more information on using the SDK and the various iOS Data Protection levels. salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/… Commented Dec 3, 2019 at 13:48
  • See the Learning Application sample code (specifically the app delegate code) for the recommended way to handle iOS Data Protection with the SDK. github.com/salesforce-marketingcloud/MarketingCloudSDK-iOS/blob/… Commented Dec 3, 2019 at 13:48
  • @JeffSylvia Thank you, I have figured out that already :) Commented Dec 4, 2019 at 14:10

1 Answer 1


The problem was using the latest SDK version without it's recommended implementation for iOS data protection. I haven't read docs and change-log before updating the SDK, my mistake

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .