Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust crashes preview on iOS 18 #735

Open
blsage opened this issue Sep 18, 2024 · 1 comment
Open

Adjust crashes preview on iOS 18 #735

blsage opened this issue Sep 18, 2024 · 1 comment

Comments

@blsage
Copy link

blsage commented Sep 18, 2024

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.

@uerceg
Copy link
Contributor

uerceg commented Sep 18, 2024

Hi @blsage,

Would it be possible to create a simple example project where this can be reproduced and sent that to us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants