由于Saurik停止維護了Cycript湾蔓,在現(xiàn)有iOS12的系統(tǒng)環(huán)境下無法使用响谓。下面介紹tateu寫的一款Cyrun
安裝及使用步驟
1. 通過Cydia安裝“New Curses”歌径,“readline”和“adv-cmds”
2. 通過SSH /終端:wget http://apt.saurik.com/debs/cycript_0.9.594_iphoneos-arm.deb
3. wget http://www.tateu.net/repo/files/net.tateu.cycriptlistenertweak_1.0.0_iphoneos-arm.deb
4. wget http://www.tateu.net/repo/files/net.tateu.cyrun_1.0.5_iphoneos-arm.deb
5. dpkg -i cycript_0.9.594_iphoneos-arm.deb
6. dpkg -i net.tateu.cycriptlistenertweak_1.0.0_iphoneos-arm.deb net.tateu.cyrun_1.0.5_iphoneos-arm.deb
7. 使用指令 `cyrun -n App名稱 -e` 或 `cyrun -n bundleID -e`
例如:`cyrun -n live4iphone -e` 或 `cyrun -b com.tencent.live4iphone -e`
8. 將指令的 -e 改為 -d 毁嗦,從App中移除(卸載)Cycript,App將被終止并自動重啟回铛。
例如:`cyrun -n live4iphone -d` 或 `cyrun -b com.tencent.live4iphone -d`
示例圖
PS:如果 wget 指令無效可以復制鏈接下載deb包狗准,然后使用 scp 指令說iFunBox工具導入deb安裝包到手機,然后執(zhí)行5-6步驟茵肃。具體使用請參考[cyrun](https://github.com/tateu/cyrun)