We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b31807 + 31ed726 commit e91205eCopy full SHA for e91205e
1 file changed
Sources/Inject/Inject.swift
@@ -32,6 +32,16 @@ public extension InjectListener {
32
#if DEBUG
33
private var loadInjectionImplementation: Void = {
34
guard objc_getClass("InjectionClient") == nil else { return }
35
+ // If project has a "Build Phase" running this script, Inject should
36
+ // work on a device (requires an InjectionIII github release 4.8.0+):
37
+ // /Applications/InjectionIII.app/Contents/Resources/copy_bundle.sh
38
+ if let path = Bundle.main.path(forResource:
39
+ "iOSInjection", ofType: "bundle") ??
40
+ Bundle.main.path(forResource:
41
+ "macOSInjection", ofType: "bundle"),
42
+ Bundle(path: path)?.load() == true {
43
+ return
44
+ }
45
#if os(macOS)
46
let bundleName = "macOSInjection.bundle"
47
#elseif os(tvOS)
0 commit comments