Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://iphonedevwiki.net/index.php/Theos/Getting_Started" rel="nofollow">By far, the easiest way to develop MS tweaks is to use Theos</a></p> <p>Follow the instructions given on the link above to install theos, navigate to the folder you want to store the project in and run <code>$THEOS/bin/nic.pl</code> to generate a template for your tweak. </p> <p>The generated Tweak.xm file is where you put your code. To build the project just navigate to the project directory in Terminal and run <code>make</code>. If have <code>dpkg</code> on your system, then you can package up and install the project easily. Make sure <code>OpenSSH</code> is installed on your iDevice and add this line to your project's makefile:</p> <pre><code>THEOS_DEVICE_IP = [INSERTDEVICESIPHERE] </code></pre> <p>Then run <code>make package install</code> to build your project, package it in a .deb, transfer it over to your device and install it.</p> <p>The code that actually goes in the Tweak.xm file is objective-C with a language that simplifies Mobile Substrate tasks called Logos, which is explained here: <a href="http://iphonedevwiki.net/index.php/Logos" rel="nofollow">http://iphonedevwiki.net/index.php/Logos</a>. Generally though, the code follows this format:</p> <pre><code>%hook classname //declares the class from your application you're going to override -(void)functionyouwanttooveride { dosomethingnew(); //put all your new code for the method here return %orig; //this calls the original definition of the method and returns the result } %end //end hooking classname </code></pre> <p>To find out what classes and methods you need to override to do whatever you want to do, install <code>class-dump</code> from cydia, ssh into your device and run <code>class-dump -H path/to/your/binary -o /path/where/you/want/your/classheaders</code>. Then you just have to look through the resulting headers to find classes and methods that have names that seem relevant to what you're doing, and experiment with them.</p> <p>Good luck!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload