tweak 一键安装中
我makeFile文件里面配置的信息是:
THEOS_DEVICE_IP = root@localhost -p 2222
include /opt/theos/makefiles/common.mk
TWEAK_NAME = joshuatweaktest
joshuatweaktest_FILES = Tweak.xm
ARCHS = armv7 arm64
TARGET = iphone:latest:10.0
iOSREProject_FRAMEWORKS = UIKit CoreTelephony CoreAudio
iOSREProject_PRIVATE_FRAMEWORKS = BaseBoard
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec “killall -9 SpringBoard”
一键打包啥的都问题 就最后安装的时候提示:
dpkg: error: unable to access dpkg status area: No such file or directory
make: *** [internal-install] Error 2
这个是不是代表我的SSH链接有问题呢 还是其他问题导致的呢 我看书上也没提及这一块的东西
我不确定我这个配置有没有错
THEOS_DEVICE_IP = root@localhost -p 2222
因为是通过usb连接的
make package messages=yes 打印的信息如下:
set -o pipefail; (/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile --no-print-directory --no-keep-going
internal-library-compile
THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=joshuatweaktest THEOS_CURRENT_OPERATION=compile
THEOS_BUILD_DIR=“.” THEOS_MAKE_PARALLEL=yes)
make[2]: Nothing to be done for `internal-library-compile’.
set -o pipefail; (rm -rf "/Users/Joshua/joshuatweaktest/.theos/")
set -o pipefail; (/opt/theos/bin/fakeroot.sh -p “/Users/Joshua/joshuatweaktest/.theos/fakeroot” -c)
set -o pipefail; (mkdir -p "/Users/Joshua/joshuatweaktest/.theos/")
set -o pipefail; ([ -d layout ] && rsync -a “layout/” "/Users/Joshua/joshuatweaktest/.theos/" --exclude “DEBIAN” --exclude “MTN" --exclude “.git” --exclude “.svn” --exclude “.DS_Store” --exclude ".*” || true)
Making stage for tweak joshuatweaktest…
set -o pipefail; (mkdir -p “/Users/Joshua/joshuatweaktest/.theos//Library/MobileSubstrate/DynamicLibraries/")
set -o pipefail; (cp /Users/Joshua/joshuatweaktest/.theos/obj/debug/joshuatweaktest.dylib "/Users/Joshua/joshuatweaktest/.theos//Library/MobileSubstrate/DynamicLibraries/”)
set -o pipefail; (if [[ ! -f “joshuatweaktest.plist” && ! -f “layout//Library/MobileSubstrate/DynamicLibraries/joshuatweaktest.plist” ]]; then
printf “\e[0;31m==> \e[1;31mError:\e[m %s\n” “You are missing a filter property list. Make sure it’s named joshuatweaktest.plist. Refer to http://iphonedevwiki.net/index.php/Cydia_Substrate#MobileLoader.” >&2;
exit 1;
elif [[ -f “joshuatweaktest.plist” ]]; then
cp joshuatweaktest.plist “/Users/Joshua/joshuatweaktest/.theos//Library/MobileSubstrate/DynamicLibraries/";
fi)
set -o pipefail; (mkdir -p "/Users/Joshua/joshuatweaktest/.theos//DEBIAN”)
set -o pipefail; (sed -e ‘/ersion:/d; /^$/d; $a' “/Users/Joshua/joshuatweaktest/control” > “/Users/Joshua/joshuatweaktest/.theos//DEBIAN/control")
set -o pipefail; (echo “Version: 0.0.1-6+debug” >> "/Users/Joshua/joshuatweaktest/.theos//DEBIAN/control”)
set -o pipefail; (echo “Installed-Size: 104” >> “/Users/Joshua/joshuatweaktest/.theos//DEBIAN/control")
set -o pipefail; (COPYFILE_DISABLE=1 /opt/theos/bin/fakeroot.sh -p “/Users/Joshua/joshuatweaktest/.theos/fakeroot” -r dpkg-deb -bZgzip "/Users/Joshua/joshuatweaktest/.theos/” “./packages/com.joshua.joshuatweaktest_0.0.1-6+debug_iphoneos-arm.deb”)
dm.pl: building package com.joshua.joshuatweaktest:iphoneos-arm' in
./packages/com.joshua.joshuatweaktest_0.0.1-6+debug_iphoneos-arm.deb’
谷歌了很久 查到了原因 因为我的是10.1.1系统 不完美越狱 cydia存在bug的 需要修复
具体修复的链接 看这个
1 个赞
另外一个报错 :
dpkg: error processing archive /tmp/_theos_install.deb (–install):
trying to overwrite ‘/Library/MobileSubstrate/DynamicLibraries’, which is also in package com.saurik.patcyh 1.2.0
Errors were encountered while processing:
/tmp/_theos_install.deb
make: *** [internal-install] Error 1
也还是cydia的一个问题导致的:
修复看这里:
这两个问题解决后 又出现了这个问题:
dpkg: dependency problems prevent configuration of com.joshua.joshuatweaktest:
com.joshua.joshuatweaktest depends on mobilesubstrate; however:
Package mobilesubstrate is not installed.
dpkg: error processing package com.joshua.joshuatweaktest (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
com.joshua.joshuatweaktest
make: *** [internal-install] Error 1
解决方案: 从新在cydia中安装substrate 即可
你好 我按照上面描述处理根本无法解决问题 MobileSubstrate下已经有了DynamicLibraries,mkdir DynamicLibraries直接报错