A macOS app that recompiles edited Swift sources into a dynamic library and loads changes into a running iOS simulator app without a full rebuild.
Overview
InjectionIII enables incremental code injection for Swift and Objective-C projects in the iOS simulator (and related Apple platforms). When you save a source file, it recompiles that file into a dynamic library, loads it into the running app, and updates call sites so new implementations run immediately instead of requiring a full rebuild or restart.
Setup involves downloading the app or Mac App Store build, adding startup hook code in your app, and enabling the -Xlinker -interposable linker flags for Debug targets. A file watcher monitors saves; classes can implement an injected() callback to refresh UI after injection. SwiftUI views can integrate via HotSwiftUI or Inject packages for reliable redraw.
Injection uses linker interposing and fishhook-style rebinding rather than only Objective-C swizzling, and updates vtables for non-final class methods. It cannot change stored property layout, add or remove methods on non-final classes in ways that alter dispatch tables, or automatically re-run UI code paths. Newer Xcode versions may require EMIT_FRONTEND_COMMAND_LINES in Debug settings so build logs expose compiler invocations.
The app also supports optional on-device injection with unsandboxed releases, macOS targets with hardened-runtime adjustments, an MCP server in recent versions, and a successor project called InjectionNext for improved performance on large codebases.
Key features
- Simulator hot reload without full rebuild
- Dynamic library load on file save
- Linker interposing for Swift methods
- SwiftUI injection helpers via packages
- Optional on-device injection mode
- Xcode build log driven recompile
- MCP server in app bundle
- Mac App Store and GitHub releases
Use cases
- Rapid UI iteration in simulator
- SwiftUI view tweaking
- Debugging without relaunch
- macOS app development injection
- UIKit controller updates