forked from shadowfacts/Tusker
Fix crash on first launch after updating from build 77
This commit is contained in:
parent
a12afb8dc2
commit
f361517a92
|
@ -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)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue