Swiftpack.co - johnno1962/InjectionLite as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by johnno1962.
johnno1962/InjectionLite 1.1.8
Swift package re-write of InjectionIII app
⭐️ 10
🕓 5 days ago
.package(url: "https://github.com/johnno1962/InjectionLite.git", from: "1.1.8")


A cut down, standalone, Swift Package version of the InjectionIII application for use in the simulator or unsandboxed macOS.

Simply add this package to your project and add "Other Linker Flags" -Xlinker -interposable to the build settings of the targets of your project. When you launch your app and save a source file (somewhere in your home directory), this package attempts to find how to recompile the file from the most recent build log, creates a dynamic library and loads it, then "swizzles" the new function implementations into the app without having to restart it.

It should be fuctionally equivalent to using the app but it's rather new and there are likely to be some problems to iron out. If you encounter one, please file an issue. Consult the InjectionIII README for more details on how it can be used to inject an iOS app or even SwiftUI and how it works its magic.


Stars: 10
Last commit: 5 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics