使用theos打包时报segmentation fault

需求: 将tweak代码打包时出现如下错误,麻烦各位帮忙看看

日志:

Making all for tweak Alire…
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=Alire 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/liaosicong/Code/alire/.theos/
")
set -o pipefail; (/opt/theos/bin/fakeroot.sh -p “/Users/liaosicong/Code/alire/.theos/fakeroot” -c)
set -o pipefail; (mkdir -p "/Users/liaosicong/Code/alire/.theos/
")
set -o pipefail; ([ -d layout ] && rsync -a “layout/” "/Users/liaosicong/Code/alire/.theos/
" --exclude “DEBIAN” --exclude “MTN" --exclude “.git” --exclude “.svn” --exclude “.DS_Store” --exclude ".*” || true)
Making stage for tweak Alire…
set -o pipefail; (mkdir -p “/Users/liaosicong/Code/alire/.theos//Library/MobileSubstrate/DynamicLibraries/")
set -o pipefail; (cp /Users/liaosicong/Code/alire/.theos/obj/debug/Alire.dylib "/Users/liaosicong/Code/alire/.theos/
/Library/MobileSubstrate/DynamicLibraries/”)
set -o pipefail; (if [[ ! -f “Alire.plist” && ! -f “layout//Library/MobileSubstrate/DynamicLibraries/Alire.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 Alire.plist. Refer to http://iphonedevwiki.net/index.php/Cydia_Substrate#MobileLoader.” >&2;
exit 1;
elif [[ -f “Alire.plist” ]]; then
cp Alire.plist “/Users/liaosicong/Code/alire/.theos//Library/MobileSubstrate/DynamicLibraries/";
fi)
set -o pipefail; (mkdir -p "/Users/liaosicong/Code/alire/.theos/
/DEBIAN”)
set -o pipefail; (sed -e '/[1]ersion:/d; /^$/d; $a' “/Users/liaosicong/Code/alire/control” > “/Users/liaosicong/Code/alire/.theos//DEBIAN/control")
set -o pipefail; (echo “Version: 0.0.1-34+debug” >> "/Users/liaosicong/Code/alire/.theos/
/DEBIAN/control”)
set -o pipefail; (echo “Installed-Size: 120” >> “/Users/liaosicong/Code/alire/.theos//DEBIAN/control")
set -o pipefail; (COPYFILE_DISABLE=1 /opt/theos/bin/fakeroot.sh -p “/Users/liaosicong/Code/alire/.theos/fakeroot” -r dm.pl -Zlzma -b "/Users/liaosicong/Code/alire/.theos/
” “./packages/com.wumii.alire_0.0.1-34+debug_iphoneos-arm.deb”)
/opt/theos/bin/fakeroot.sh: line 46: 9505 Segmentation fault: 11 $fakeroot $cmd

操作步骤: 代码写完后直接调用make package报了上面的错误,有大大能帮忙看看原因吗


  1. Vv ↩︎