Depressed a few days ago, did not continue, today to start sorting out the reverse

Today’s focus is Theos

Theos is a jailbreak development kit that allows you to create Tweak projects, dynamically Hook third-party applications. GitHub link: github.com/theos/theos, the official website installation tutorial can refer to: github.com/theos/theos…

The installation

1. Install the dependency library:

Install three dependency libraries, DPKG, Fakeroot, and LDID (brew is an uninstalled custom query installation) before installing Theos

 brew install ldid fakeroot  brew pin DPKGCopy the code
  • ldid

Jailbreak iPhone under signature tool (change Entitlements), can be developed for theOS process signature (support to run on OS X and iOS).

  • dpkgIt’s easy to use
 DPKG -i/-r deb installation/uninstallation  DPKG -s com.iosre.myiosreproject View installation package informationCopy the code
2. ReviewMacDoes a computer exist?/optDirectory, without creating one yourself.
 CD/optCopy the code
3. In the newly created /opt directory, obtain the source code of the Clone project

$ git clone --recursive https://github.com/theos/theos.git

Copy the code
4. Run the following command to modify the configuration filetheospermissions
 sudo chown -r $(id-u):$(id-g) theosCopy the code
5. Modify environment variables

Open the ~/.bash_profile file and add the following two lines


export THEOS=/opt/theos

export PATH=/opt/theos/bin/:$PATH

Copy the code
6. After the configuration is complete, check whether the configuration is successful.
 echo $THEOS/opt/THEOSCopy the code

If you have omyzsh installed on your Mac, the omyzshrc configuration may not be successful. The solution is to add the following line to the ~ /.zshrc.

 source ~ /. FollowingCopy the code

Check the configuration again. If it is successful, the environment is configured

ps: Since I have omyzsh installed, add a line source ~ /.zshrc to.bash_profile, After modifying the.bash_profile and.zshrc files in the future, the source ~/.bash_profile command can configure all of them directly


End