日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

tweak环境安装及编写

發布時間:2023/12/16 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 tweak环境安装及编写 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

tweak安裝及編寫

1. 安裝dpkg與ldid

brew install dpkg ldid

2. 安裝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_profile

3. 開始編寫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): FirstTweak

Package 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
結果如下:

$ make package install xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH > Making all for tweak FirstTweak… xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH make[2]: Nothing to be done for `internal-library-compile'. > Making stage for tweak FirstTweak… xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -find llvm-dsymutil 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory) xcrun: error: unable to find utility "llvm-dsymutil", not a developer tool or in PATH dm.pl: building package `com.yourcompany.firsttweak:iphoneos-arm' in `./packages/com.yourcompany.firsttweak_0.0.1-3+debug_iphoneos-arm.deb' ==> Installing… root@localhost's password: Selecting previously unselected package com.yourcompany.firsttweak. (Reading database ... 2140 files and directories currently installed.) Preparing to unpack /tmp/_theos_install.deb ... Unpacking com.yourcompany.firsttweak (0.0.1-3+debug) ... Setting up com.yourcompany.firsttweak (0.0.1-3+debug) ... install.exec "killall -9 SpringBoard" root@localhost's password:

輸入兩次密碼后,成功安裝到手機。

總結

以上是生活随笔為你收集整理的tweak环境安装及编写的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。