An Xcode plugin that dynamically injects new Swift/Objective-C code into a running app to speed up development.
Injection for Xcode is an Xcode plugin that dynamically injects new Swift or Objective-C code into a running iOS or macOS application without restarting it. It solves the problem of slow build times during iterative development by allowing developers to see code changes in real-time, significantly speeding up the edit-compile-test cycle.
iOS and macOS developers using Xcode who want to accelerate UI tweaking, debugging, and iterative feature development without constant app restarts.
Developers choose Injection for Xcode because it dramatically reduces development time by enabling live code injection, providing immediate feedback on changes, and integrating seamlessly with Xcode workflows via keyboard shortcuts and file watching.
Runtime Code Injection for Objective-C & Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Enables dynamic injection of Swift/Objective-C code into running apps via keyboard shortcuts, eliminating full recompilations and speeding up iterative development.
Works with both Swift and Objective-C, offering flexibility for mixed-language projects, though with noted constraints for Swift features like structs.
Provides injected instance/class methods and INJECTION_BUNDLE_NOTIFICATION, allowing automatic app state updates after code changes without restarts.
Includes a file watcher that can automatically inject changes when source files are saved, streamlining the edit-save-test workflow.
Does not work elegantly with Swift structs, final methods, or global functions, which are common in modern Swift codebases, reducing its effectiveness.
This repository is no longer maintained, forcing users to migrate to InjectionIII for updates, support, and compatibility with newer Xcode versions.
Requires project patching for use on physical iOS devices and is hindered by sandboxing in iOS10, adding setup overhead and potential instability.