Skip to content

App crashes on launch when 'Lock App After' is enabled in Connected App settings (SDK 13.1.0) #3956

@stanaka4949

Description

@stanaka4949

Title: App crashes on launch when 'Lock App After' is enabled in Connected App settings (SDK 13.1.0)

Labels: bug, crash, iOS


Description

After upgrading SalesforceMobileSDK-iOS from 13.0.2 to 13.1.0, our Flutter-based hybrid app crashes immediately on launch when the Connected App has "Lock App After [time period]" (screen lock timeout) enabled.

The crash occurs during the app launch sequence with EXC_CRASH (SIGABRT) in UIApplication._runWithMainScene.

Environment

  • App Type: Flutter hybrid app (using SalesforceMobileSDK-iOS for authentication)
  • SalesforceMobileSDK-iOS version: 13.1.0 (crashes) / 13.0.2 (works)
  • Xcode version: 16.2
  • iOS version: 18.3
  • macOS version: 15.3.2
  • Device: iPhone SE (3rd generation) Simulator

Steps to Reproduce

  1. Configure Connected App in Salesforce with "Lock App After [time period]" enabled
  2. Upgrade SalesforceMobileSDK-iOS from 13.0.2 to 13.1.0
  3. Build and launch the Flutter app on iOS
  4. App crashes immediately on launch

Expected Behavior

App should launch normally as it did with SDK version 13.0.2.

Actual Behavior

App crashes immediately on launch with SIGABRT signal.

Crash Log Summary

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6

Last Exception Backtrace:
0   CoreFoundation    __exceptionPreprocess
1   libobjc.A.dylib   objc_exception_throw
2   Foundation        -[NSAssertionHandler handleFailureInMethod:...]
...
27  UIKitCore         UIApplication._runWithMainScene:transitionContext:completion:

Workaround

  • Downgrade to SalesforceMobileSDK-iOS 13.0.2
  • OR disable "Lock app after [time period]" setting in Connected App
Full Crash Report
Incident Identifier: C5E134A0-C635-4CB4-927E-A60C733B5FA3
CrashReporter Key:   7BBE3D6D-0485-58DA-888B-1E9826B20C1B
Hardware Model:      Mac14,2
Process:             [REDACTED] [17404]
Path:                [REDACTED]
Identifier:          [REDACTED]
Version:             6.0.0
AppStoreTools:       16E140
AppVariant:          1:iPhone14,2:18
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [1627]
Coalition:           [REDACTED]

Date/Time:           2025-11-25 12:59:13.2538 +0900
Launch Time:         2025-11-25 12:59:12.5785 +0900
OS Version:          iPhone OS 18.3
Release Type:        Simulator
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: SIGABRT [17404]

Triggered by Thread:  0

Binary Images (Related):
0x1031f8000 - SalesforceSDKCore.framework (13.1.0)
0x103310000 - SalesforceSDKCommon.framework
0x103328000 - SalesforceAnalytics.framework

I am sorry, but please let me know how to check and avoid this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions