目標:改變越獄手機的桌面上的標題;並彈出一個對話框。
坑1: /opt/thios/bin/nic.pl,要選擇iphone/tweak。
坑2:執行make,提示:
Makefile:8: /makefiles/common.mk: No such file or directory
Makefile:13: /tweak.mk: No such file or directory
make: * No rule to make target `/tweak.mk’. Stop.
解決:
需要設置環境變量:
export THEOS=/opt/theos
坑3:執行make package時,提示:dpkg-deb: error: obsolete compression type ‘lzma’; use xz instead
解決:查找lzma在文件中的位置:
find /var/theos -type f -name “*.mk” | xargs grep “lzma”
發現在/opt/theos/makefiles/package/deb.mk中
sudo vi /opt/theos/makefiles/package/deb.mk
將Line6改為_THEOS_PLATFORM_DPKG_DEB_COMPRESSION ?= xz
坑4:執行make install時,提示:ssh: connect to host 192.168.101.160 port 22: Connection refused
解決: 需要先在越獄手機上安裝openssh,按照cydia的說明去做就可以。
坑5:執行make install時,提示:dpkg-deb: error: obsolete compression type ‘lzma’; use xz instead
解決:最終將坑3中的Line6改為_THEOS_PLATFORM_DPKG_DEB_COMPRESSION ?= gzip解決。
激動時刻: