當前位置:
首頁 >
tweak环境安装及编写
發布時間:2023/12/16
50
豆豆
生活随笔
收集整理的這篇文章主要介紹了
tweak环境安装及编写
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
tweak安裝及編寫
1. 安裝dpkg與ldid
brew install dpkg ldid2. 安裝Theos
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos給theos安裝目錄權限
sudo chown $(id -u):$(id -g) /opt/theos配置環境變量
vim ~/.bash_profile在.bash_profile文件的末尾加上
export THEOS=/opt/theos export PATH=/opt/theos/bin/:$PATH然后執行
source ~/.bash_profile3. 開始編寫tweak
在終端輸入nic.pl, 然后選擇iphone/tweak對應的編號
$ nic.pl NIC 2.0 - New Instance Creator ------------------------------[1.] iphone/activator_event[2.] iphone/application_modern[3.] iphone/application_swift[4.] iphone/cydget[5.] iphone/flipswitch_switch[6.] iphone/framework[7.] iphone/ios7_notification_center_widget[8.] iphone/library[9.] iphone/notification_center_widget[10.] iphone/preference_bundle_modern[11.] iphone/tool[12.] iphone/tool_swift[13.] iphone/tweak[14.] iphone/xpc_service Choose a Template (required):選擇13, 輸入項目名稱FirstTweak
Choose a Template (required): 13 Project Name (required): FirstTweakPackage Name直接回車,Author默認回車,剩下的一直回車即可。
Package Name [com.yourcompany.firsttweak]: Author/Maintainer Name [daye]: daye [iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]: [iphone/tweak] List of applications to terminate upon installation (space-separated, '-' for none) [SpringBoard]: Instantiating iphone/tweak in firsttweak/... Done.4. 安裝tweak
將22端口轉發到22222
iproxy 22222 22回到終端,cd到tweak目錄, 連接我們的越獄手機
$ make package install如果報錯,缺少THEOS_DEVICE_IP,在終端輸入如下
export THEOS_DEVICE_IP=localhost:22222再次執行make package install
結果如下:
輸入兩次密碼后,成功安裝到手機。
總結
以上是生活随笔為你收集整理的tweak环境安装及编写的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: clickhouse-client命令行
- 下一篇: 关于电子科技大学学生用餐状况的一些调查