Open
Description
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
Labels
No labels