BHSPitMonkey (talk | contribs) (Some basic info/usage for Logify) |
(→Issues) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
Logify is a utility that accepts a class header (.h file) as input and generates a MobileSubstrate extension (.xm file) which hooks all of that class's methods, printing log messages when they are called. This helps a hook developer see when certain methods are invoked during use. | Logify is a utility that accepts a class header (.h file) as input and generates a MobileSubstrate extension (.xm file) which hooks all of that class's methods, printing log messages when they are called. This helps a hook developer see when certain methods are invoked during use. Comes with [[Theos]]. | ||
== Usage == | == Usage == | ||
At a bash command line | At a bash command line, run the following command: | ||
logify.pl SomeClassHeader.h > tweak.xm | logify.pl SomeClassHeader.h > tweak.xm | ||
This will create a new tweak source file (tweak.xm) using the methods defined in the header file `SomeClassHeader.h`. You can then use tweak.xm as the basis for a new tweak project, or integrate the generated code into your own project. | This will create a new tweak source file (tweak.xm) using the methods defined in the header file `SomeClassHeader.h`. You can then use tweak.xm as the basis for a new tweak project, or integrate the generated code into your own project. | ||
== Issues == | |||
Doesn't generate any output if the interface line doesn't have a superclass, e.g. @interface MyClass, replace with @interface MyClass : NSObject | |||
[[Category:Development Tools]] |
Latest revision as of 20:32, 16 November 2014
Logify is a utility that accepts a class header (.h file) as input and generates a MobileSubstrate extension (.xm file) which hooks all of that class's methods, printing log messages when they are called. This helps a hook developer see when certain methods are invoked during use. Comes with Theos.
Usage
At a bash command line, run the following command:
logify.pl SomeClassHeader.h > tweak.xm
This will create a new tweak source file (tweak.xm) using the methods defined in the header file `SomeClassHeader.h`. You can then use tweak.xm as the basis for a new tweak project, or integrate the generated code into your own project.
Issues
Doesn't generate any output if the interface line doesn't have a superclass, e.g. @interface MyClass, replace with @interface MyClass : NSObject