-
-
Notifications
You must be signed in to change notification settings - Fork 348
Open
Description
When I try to Debug with target My Mac(Designed for iPad)
guard objc_getClass("InjectionClient") == nil else {
return
}
#if os(macOS) || targetEnvironment(macCatalyst)
let bundleName = "macOSInjection.bundle"
#elseif os(tvOS)
let bundleName = "tvOSInjection.bundle"
#elseif targetEnvironment(simulator)
let bundleName = "iOSInjection.bundle"
#else
let bundleName = "maciOSInjection.bundle"
#endif
let injectionBundle = Bundle.init(path: "/Applications/InjectionIII.app/Contents/Resources/\(bundleName)")
if let bundle = injectionBundle{
try bundle.loadAndReturnError()
} else {
debugPrint("Injection 注入失败,未能检测到 Injection")
}
} catch {
debugPrint("Injection 注入失败 \(error)")
}
always show the error
💉
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels