injectionforxcode enables live code injection for iOS and macOS apps so developers can iterate on UI and logic without doing a full rebuild and relaunch. It works by compiling changed source files into dynamic bundles and loading them into the running app, swapping method implementations at runtime. The tool monitors file changes, triggers fast recompiles, and provides console feedback so you can confirm injections and quickly revert if needed. It supports Objective-C and Swift (with certain runtime caveats), and plays well with Interface Builder tweaks, letting you see visual changes almost immediately. Because it hooks into the natural development loop, it dramatically shortens feedback cycles for layout tuning, animations, and view controller logic. While not a replacement for clean rebuilds and full test runs, it’s a powerful productivity aid for day-to-day iteration.
Features
- Runtime code injection into a live app—no rebuilding or relaunching required
- Supports injecting Objective-C and Swift classes (with some limitations in Swift)
- Supports callback methods
- Parses build logs to create injection bundles dynamically swizzled into original classes
- Installation via Alcatraz plugin manager or manual build, with AppCode support
- Notes compatibility limitations (e.g., iOS sandboxing from iOS 10), with migration to standalone InjectionIII