《iOS 應(yīng)用逆向工程》一書中的安裝方法已經(jīng)過期,故將自己踩坑經(jīng)歷寫下。
本文針對Mac中單個Xcode的情況
1.下載Theos
AndrewdeMacBook-Pro:~ Andrew$? export THEOS=/opt/theos
AndrewdeMacBook-Pro:~ Andrew$ sudo git clone git://github.com/DHowett/theos.git $THEOS
Password:
Cloning into '/opt/theos'...
remote: Counting objects: 7619, done.
remote: Total 7619 (delta 0), reused 0 (delta 0), pack-reused 7619
Receiving objects: 100% (7619/7619), 1.92 MiB | 270.00 KiB/s, done.
Resolving deltas: 100% (4683/4683), done.
下載完成后可以前往 ?/opt/theos ?中找到下載路徑
2.配置ldid
從http://joedj.net/ldid下載ldid,打開網(wǎng)址即會下載,然后將該文件拷貝到/opt/theos/bin路徑下,并刪除原路徑文件(此處移動文件路徑不可行),然后用以下命令賦予它可執(zhí)行權(quán)限:
AndrewdeMacBook-Pro:~ Andrew$ sudo chmod 777 /opt/theos/bin/ldid
3.配置libsubstrate.dylib
下載路徑:https://github.com/kokoabim/iOSOpenDev/blob/master/lib/libsubstrate.dylib
將文件拷貝到拷貝到 /opt/theos/lib路徑下
4.配置dpkg-deb
在路徑/opt/theos/bin/下有一個文件叫dm.pl 將該文件改名成dpkg-deb.pl
然后用以下命令賦予它可執(zhí)行權(quán)限:
sudo chmod 777 /opt/theos/bin/dpkg-deb
6.配置Theos NIC templates(此步驟可以省略了,已經(jīng)有了)