Our app is crashing after latest SDK update (v6.4.1). Push notification setup was updated using latest learning app example and docs related with application protected data.

Related code:

func applicationProtectedDataDidBecomeAvailable(_ application: UIApplication) {

    if !MarketingCloudSDK.sharedInstance().sfmc_isReady() {

        let config = CurrentConfig.config().pushConfig

        let builder = MarketingCloudSDKConfigBuilder()
            .sfmc_setInboxEnabled(true as NSNumber)
            .sfmc_setPiAnalyticsEnabled(true as NSNumber)
            .sfmc_setLocationEnabled(true as NSNumber)
            .sfmc_setAnalyticsEnabled(true as NSNumber)

        do {
            try MarketingCloudSDK.sharedInstance().sfmc_configure(with: builder)
        } catch {

    // ...

Crash reports:

enter image description here enter image description here

  • Can you provide details of the error from your reportError function in your catch handler? – Jeff Sylvia Dec 12 '19 at 17:47
  • I can't catch this crash directly, there just crashlytics info and I already provided. The strange thing is that this crash has only occurred in one version of app, and i can't see it on latest release (3 days live). Maybe it was just an SDK related backend error for some moment? I will keep my eyes on that for next several days and may close this issue. – Arnoldas Liudžius Dec 13 '19 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.