Logify: Difference between revisions

From iPhone Development Wiki
mNo edit summary
(adding category)
Line 8: Line 8:


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.
[[Category:Development Tools]]

Revision as of 02:13, 7 September 2013

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.

Usage

At a bash command line (with Theos installed), 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.