Microsoft Word - iOSAppReverseEngineering.docx

(Romina) #1
Compiling native CydiaSubstrate stub...
Generating substrate.h header...

Here we’ll meet a bug that Theos cannot generate a working libsubstrate.dylib, which


requires our manual fixes. Piece of cake: first search and install CydiaSubstrate in Cydia, as


shown in figure 3-2.


Figure 3- 2 CydiaSubstrate


Then copy “/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate” on iOS to


somewhere on OSX such as the desktop using iFunBox or scp. Rename it libsubstrate.dylib and


copy it to “/opt/theos/lib/libsubstrate.dylib” to replace the invalid file.



  1. Configure dpkg-deb


The standard installation package format in jailbreak development is deb, which can be


manipulated by dpkg-deb. Theos uses dpkg-deb to pack projects to debs.


Download dm.pl from


https://raw.githubusercontent.com/DHowett/dm.pl/master/dm.pl, rename it dpkg-deb and


move it to “/opt/theos/bin/”, then grant it execute permission using the following command:


snakeninnysiMac:~ snakeninny$ sudo chmod 777 /opt/theos/bin/dpkg-deb
Free download pdf