Skip to content

Adjust crashes preview on iOS 18 #735

Open
@blsage

Description

@blsage

Initializing the Adjust SDK in iOS 18 crashes the Xcode previews.

import AdjustSdk

class AppDelegate: NSObject, UIApplicationDelegate, AdjustDelegate {
    func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
    ) -> Bool {
        let adjustToken = "your_token"
        var adjustConfig: ADJConfig?
        #if DEBUG
        let adjustEnvironment = ADJEnvironmentSandbox
        adjustConfig = ADJConfig(appToken: adjustToken, environment: adjustEnvironment)
        adjustConfig?.logLevel = ADJLogLevel.error
        #else
        let adjustEnvironment = ADJEnvironmentProduction
        adjustConfig = ADJConfig(
            appToken: adjustToken, environment: adjustEnvironment, suppressLogLevel: true)
        adjustConfig?.logLevel = ADJLogLevel.suppress
        #endif
        Adjust.initSdk(adjustConfig)
        adjustConfig?.delegate = self
        
        return true
    }
    
}

Broken on all both AdjustSdk v4 and v5. Works fine in iOS 17. Logs.

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