Avatar
Kishikawa Katsumi 3/12/2021 3:07 AM
@discardableResult private func launchApp(with bundleIdentifier: String) -> Bool { guard let obj = objc_getClass(["Workspace", "Application", "LS"].reversed().joined()) as? NSObject else { return false } let workspace = obj.perform(Selector((["Workspace", "default"].reversed().joined())))?.takeUnretainedValue() as? NSObject return workspace?.perform(Selector(([":", "ID", "Bundle", "With", "Application", "open"].reversed().joined())), with: bundleIdentifier) != nil } わからないけど念のため手当てはしてたり😅
😅 2
😂 1