Please refer to the official document
Theos, which was originally developed by DHowett, became stalled after he joined Microsoft and no longer had time for maintenance. Then Adam Demasi a.k.a. kirb picked it up and made several significant changes to it ever since. Therefore, the installation of Theos from iOS App Reverse Engineering no longer works, and this post is an update of the outdated content.
Install dpkg and ldid
dpkg is the
package manager for Debian,
while ldid is
a tool made by saurik for modifying a binary's entitlements easily. ldid also generates SHA1 hashes for the binary signature, so the iPhone kernel executes the binary.
First install Homebrew if you don't have it, and then just run:
FunMaker-MBP:~ snakeninny$ brew install dpkg ldid
We used to install Theos at /opt/theos, and let's keep it the same.
FunMaker-MBP:~ snakeninny$ sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
Then change the owner of /opt/theos to yourself:
FunMaker-MBP:~ snakeninny$ sudo chown $(id -u):$(id -g) /opt/theos
Last but not least, set the
$THEOS variable in your environment by editing
~/.bash_profile, and add such a line to that file:
~/.bash_profile looks like this afterwards:
cd to a writable directory and run:
FunMaker-MBP:Code snakeninny$ nic.pl
If New Instance Creator is run, you've got Theos successfully installed. Congrats!
Remember to pull recursively, using the following command:
FunMaker-MBP:theos snakeninny$ git submodule update --recursive
Much easier than the original setup, huh?