From 878744b636bde10d4a56cbe592cbff5a6919f390 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 28 May 2023 21:04:29 -0700 Subject: [PATCH] Tweak how Sentry installation ID is read --- Tusker/AppDelegate.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tusker/AppDelegate.swift b/Tusker/AppDelegate.swift index 6b3c2ec5..3abf44f1 100644 --- a/Tusker/AppDelegate.swift +++ b/Tusker/AppDelegate.swift @@ -115,9 +115,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } if let clazz = NSClassFromString("SentryInstallation"), - let objClazz = clazz as AnyObject as? NSObjectProtocol, - objClazz.responds(to: Selector(("id"))), - let id = objClazz.perform(Selector(("id"))).takeUnretainedValue() as? String { + let objClazz = clazz as AnyObject as? NSObject, + let id = objClazz.value(forKey: "id") as? String { logger.info("Initialized Sentry with installation/user ID: \(id, privacy: .public)") } }