Fix crash on first launch after updating from build 77

This commit is contained in:
Shadowfacts 2023-04-22 23:22:38 -04:00
parent a12afb8dc2
commit f361517a92
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
if let clazz = NSClassFromString("SentryInstallation"), if let clazz = NSClassFromString("SentryInstallation"),
let objClazz = clazz as AnyObject as? NSObjectProtocol, let objClazz = clazz as AnyObject as? NSObjectProtocol,
objClazz.responds(to: Selector(("id"))), objClazz.responds(to: Selector(("id"))),
let id = objClazz.perform(Selector(("id"))).takeRetainedValue() as? String { let id = objClazz.perform(Selector(("id"))).takeUnretainedValue() as? String {
logger.info("Initialized Sentry with installation/user ID: \(id)") logger.info("Initialized Sentry with installation/user ID: \(id)")
} }
} }