Recently I mentioned the excellent ColorSense plugin, and just last week mentioned an Xcode plugin for visualizing autoresize masks.
Here’s another great premium Xcode plugin by John Holdsworth that has recently been open sourced called Injection.
What injection allows you to do is “inject” source code into an app already running in the simulator so you can tweak your app to your hearts content without needing to re-compile. A major time saver since the setup is all done automatically for this by the plugin.
According to the FAQ here’s how it works:
The objective-C runtime always takes a categories implementation in preference to that of the main class. Injection converts the class being loaded into a category and places the category in a bundle so it can be loaded dynamically. This can be done repeatedly and works for OSX and iOS applications and on iOS devices.
Here’s a video showing Injection in action:
You can find the source code for Injection on Github here.
You can download Injection itself from the homepage here – this is a premium plugin, but very reasonably priced at $9.99->$25.00 considering the time it can save.
I’ve wondered since I first heard about this project exactly how the code injection was done so great of John to let out the source code so we can all see.
- Free Xcode Plugin That Adds In Vim Keybindings
- Mini Xcode Plugin For Working Without The Gigantic Xcode Toolbar
- Objective-C Dependency Injection Framework Using A Spring-Style Approach
- Open Source Xcode Plugin That Helps Visualize Autoresize Masks Created programmatically
- Free Xcode Plugin That Makes Working With Strings Easier
Original article: Source Code For Xcode Injection Plugin Released – Allows You To Tweak Running Apps
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.