This is a Tutorial on how to get started with Theos on your iDevice made by c0redev!

 

Things you need before you can start developing Tweaks and apps on your iDevice:

An jailbroken iDevice

Basic Objective-C and C++ knowledge (If you don’t have the basic knowledge go ahead and get a programmer book for Objective-C and C++.

 

Add the 5 following repos to Cydia

http://nix.howett.net/theos/

http://iNinjas.com/repo/

http://coredev.nl/cydia

http://repo.insanelyi.com/

http://l1nd3nlr.iP1neapple.com

 

Before you start download the packages from cydia you need to be “Developer” in cydia. To change from “User” to “Developer” go to Manage -> Settings -> Developer.

 

The things you need to download from Cydia is:

 

iFile

Theos

Perl

BigBoss Recommended hacker tools

Compile C Apps iOS4

Class Dump Z

MobileTerminal (From iNinjas Repo)

 

To get started you will have to download the iPhone SDK 3.

To do so open MobileTerminal

 

Login as root to do so type:

 

su

Enter your password default: alpine

installSDK3

 

Let it do its thing

Note that the iPhone SDK3 is about 300MB so use a Wi-Fi Connection

 

 

Now lets make a new Project using Theos.

 

In MobileTerminal login as root

cd /var/theos/bin

/var/theos/bin/nic.pl

 

Choose 5 iPhone/Tweak

Enter project name: Test

Package name: com.c0redev.test

Maintainer Name: c0redev

MobileSubstrate Bundle: This depends on what header files you will use. If you want to make a simple popup alert i should say com.apple.UIKit instead of com.apple.springboard.

 

Now go into iFile /var/theos/bin/test/

Open up Tweak.xm in Text viewer and start coding your Tweak!

 

To look up what header files you wanna use go into /var/SDK/System/Library/Frameworks

 

If you need some help on how to write tweaks use chpwns open source tweaks as help!

https://github.com/chpwn

 

 

Now it’s time to build the Tweak

 

In Terminal go to the directory where you made tour tweak ( cd /var/theos/bin/test/ )

Now type this:

 

make

 

Now we need to install it, type:

 

make package

 

Then install it type:

 

make install

 

Now the Springboard should restart and your tweak is installed.

 

Test your Tweak!

 

———————————————–

If you get errors when you try to “make” your Tweak go to the Makefile and add the following line before everything:

 

GO_EASY_ON_ME = 1

 

 

Please add me on Twitter @c0redev

https://twitter.com/#!/c0redev

 

If you have any questions please ask me on Twitter!


Follow @L1nd3nlr on Twitter!
iModZone on Twitter | iModZone on Facebook
Your Ad Here