How to use custom application settings in injection plugin for Xcode?

I have configured the Injection plugin in my Xcode 6.4, and I want to use the “Tunable App Parameters” to dynamically see the changes in my application as a custom application. The parameter is changing. But I don’t understand how to use the predefined compiler macros (do I need to define them in the application or can I use them directly in my application?)

Link for the plugin: http://injectionforxcode.com/

It would be very helpful if someone knows how to use the Tunable App settings? (I can use the main function of the plugins, i.e. Get updated changes without recompiling and restarting the application.)

+7
plugins ios objective-c xcode code-injection
source share
1 answer

Yes, here is the answer.

Injection Plugin also provides five variables and five colors stored in the INParameters and INColors global arrays, respectively. At first glance, the “Tunable App Parameters” simply modifies the contents of two arrays.

Here is the thread: (Assuming you want to change the backgroubd color of the UIView)

  • Product → Plugin for Injection → Patch Project for Injection (which will add the following codes to your current target pch file) enter image description here
  • self.view.backgroundColor = INColors[0];
  • Launch your goal.
  • Product → plugin for injection → customizable application parameters (the first slide block responds to INColors [0], just change it)
0
source share

All Articles