Skip to content

Commit

Permalink
Merge pull request #69 from krzysztofzablocki/fix-fatal-error
Browse files Browse the repository at this point in the history
Replace fatal error
  • Loading branch information
krzysztofzablocki committed Feb 7, 2023
2 parents 550af6c + ba34ac1 commit abcc4b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Inject/Inject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ private var loadInjectionImplementation: Void = {
let bundleName = "maciOSInjection.bundle"
#endif // OS and environment conditions

#if targetEnvironment(simulator) || os(macOS)
if let bundle = Bundle(path: "/Applications/InjectionIII.app/Contents/Resources/" + bundleName) {
bundle.load()
} else {
assertionFailure("InjectionIII not found, verify if it's in /Applications")
print("⚠️ Inject: InjectionIII not found, verify if it's in /Applications")
}
#endif
}()

@available(iOS 13.0, *)
Expand Down

0 comments on commit abcc4b0

Please sign in to comment.