Make package报错


#1

make命令可以正常运行,make package就报错

错误 :/Applications/Xcode.app/Contents/Developer/usr/bin/make package requires dpkg-deb.
make: *** [internal-package-check] Error 1

已下载dm.pl,并改名为dpkg-deb。按照书上的 sudo chmod 777 /opt/theos/bin/dpkg-deb,会提示没有该目录,就改成了sudo chmod 777 /opt/theos/bin/dpkg-deb.pl 。
请问大家遇到了吗?怎么解决的?


#2

这是什么意思?把你在Terminal中的操作和报错贴出来


#3

这些是过程,麻烦看看!


#4

跑一下ls -l /opt/theos/bin/dpkg-deb,看看输出什么


#6

为什么要加pl后缀就行

之前装工具, sudo chmod 777 /opt/theos/bin/dpkg-deb命令也是提示无此目录,改成 sudo chmod 777 /opt/theos/bin/dpkg-deb.pl 加了pl后缀就行


#7

你把dpkg-deb.pl给重命名成dpkg-deb应该就可以正确打包了


#8

鼠标右键“显示简介”,在“名称与拓展名”里把“pl”后缀去掉就行了。谢谢!也提醒遇到此问题的童鞋们!!!!


#9

谢谢,刚好我也遇到跟你一样的问题


#10

Chris-2:mtrider Chris$ make package messages=yes

Making all for tweak MTRider…
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile --no-keep-going FORCE_COLOR=1
internal-library-compile
THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=MTRider THEOS_CURRENT_OPERATION=compile
THEOS_BUILD_DIR="." THEOS_MAKE_PARALLEL=yes
set -o pipefail; (mkdir -p /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/)
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 1 “Preprocessing Tweak.xm”); set -o pipefail; (/opt/theos/bin/logos.pl -c warnings=error Tweak.xm > /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/Tweak.xm.mm)
==> Preprocessing Tweak.xm…
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 2 “Compiling Tweak.xm (arm64)”); set -o pipefail; (xcrun -sdk iphoneos clang++ -x objective-c++ -c -I"/Users/Chris/Desktop/iOSre/BI/mtrider" -I/opt/theos/include -I/opt/theos/vendor/include -I/opt/theos/include/fallback -include /opt/theos/Prefix.pch -DTARGET_IPHONE=1 -O0 -Wall -Werror -fcolor-diagnostics -isysroot “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk” -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_0 -miphoneos-version-min=8.0 -fmodules -fcxx-modules -fmodule-name=MTRider -fbuild-session-file=/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/build_session -fmodules-prune-after=345600 -fmodules-prune-interval=86400 -fmodules-validate-once-per-build-session -DDEBUG -ggdb -O0 -DTHEOS_INSTANCE_NAME="“MTRider”" -arch arm64 /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/Tweak.xm.mm -o /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/Tweak.xm.eb3f672e.o)
==> Compiling Tweak.xm (arm64)…
set -o pipefail; (rm /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/Tweak.xm.mm)
set -o pipefail; (mkdir -p /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64)
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 3 “Linking tweak MTRider (arm64)”); set -o pipefail; (xcrun -sdk iphoneos clang++ -L/opt/theos/lib -L/opt/theos/vendor/lib -fcolor-diagnostics -lobjc -framework Foundation -framework CoreFoundation -ObjC++ -fobjc-exceptions -fobjc-call-cxx-cdtors -framework UIKit -F/opt/theos/vendor/lib -framework CydiaSubstrate -dynamiclib -install_name “/Library/MobileSubstrate/DynamicLibraries/MTRider.dylib” -isysroot “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk” -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_0 -miphoneos-version-min=8.0 -multiply_defined suppress -arch arm64 -ggdb -O0 -o “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/MTRider.dylib” /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/Tweak.xm.eb3f672e.o | (grep -v ‘usr/lib/dylib1.o, missing required architecture’ || true))
==> Linking tweak MTRider (arm64)…
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 4 “Generating debug symbols for MTRider (arm64)”); set -o pipefail; (dsymutil “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/MTRider.dylib”)
==> Generating debug symbols for MTRider (arm64)…
set -o pipefail; (mkdir -p /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/)
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 1 “Preprocessing Tweak.xm”); set -o pipefail; (/opt/theos/bin/logos.pl -c warnings=error Tweak.xm > /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/Tweak.xm.mm)
==> Preprocessing Tweak.xm…
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 2 “Compiling Tweak.xm (armv7)”); set -o pipefail; (xcrun -sdk iphoneos clang++ -x objective-c++ -c -I"/Users/Chris/Desktop/iOSre/BI/mtrider" -I/opt/theos/include -I/opt/theos/vendor/include -I/opt/theos/include/fallback -include /opt/theos/Prefix.pch -DTARGET_IPHONE=1 -O0 -Wall -Werror -fcolor-diagnostics -isysroot “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk” -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_0 -miphoneos-version-min=8.0 -fmodules -fcxx-modules -fmodule-name=MTRider -fbuild-session-file=/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/build_session -fmodules-prune-after=345600 -fmodules-prune-interval=86400 -fmodules-validate-once-per-build-session -DDEBUG -ggdb -O0 -DTHEOS_INSTANCE_NAME="“MTRider”" -arch armv7 /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/Tweak.xm.mm -o /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/Tweak.xm.1de82e99.o)
==> Compiling Tweak.xm (armv7)…
set -o pipefail; (rm /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/Tweak.xm.mm)
set -o pipefail; (mkdir -p /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7)
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 3 “Linking tweak MTRider (armv7)”); set -o pipefail; (xcrun -sdk iphoneos clang++ -L/opt/theos/lib -L/opt/theos/vendor/lib -fcolor-diagnostics -lobjc -framework Foundation -framework CoreFoundation -ObjC++ -fobjc-exceptions -fobjc-call-cxx-cdtors -framework UIKit -F/opt/theos/vendor/lib -framework CydiaSubstrate -dynamiclib -install_name “/Library/MobileSubstrate/DynamicLibraries/MTRider.dylib” -isysroot “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk” -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_0 -miphoneos-version-min=8.0 -Wl,-segalign,4000 -multiply_defined suppress -arch armv7 -ggdb -O0 -o “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/MTRider.dylib” /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/Tweak.xm.1de82e99.o | (grep -v ‘usr/lib/dylib1.o, missing required architecture’ || true))
==> Linking tweak MTRider (armv7)…
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 4 “Generating debug symbols for MTRider (armv7)”); set -o pipefail; (dsymutil “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/MTRider.dylib”)
==> Generating debug symbols for MTRider (armv7)…
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 4 “Merging tweak MTRider”); set -o pipefail; (xcrun lipo -arch arm64 /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/arm64/MTRider.dylib -arch armv7 /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/armv7/MTRider.dylib -create -output “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/MTRider.dylib.47ba6b93.unsigned”)
==> Merging tweak MTRider…
(printf “\e[0;3%im==> \e[1;39m%s…\e[m\n” 4 “Signing MTRider”); set -o pipefail; (CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate" ldid -S “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/MTRider.dylib.47ba6b93.unsigned” && mv “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/MTRider.dylib.47ba6b93.unsigned” “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/MTRider.dylib”)
==> Signing MTRider…
set -o pipefail; (rm -rf "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
")
set -o pipefail; (/opt/theos/bin/fakeroot.sh -p “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/fakeroot” -c)
set -o pipefail; (mkdir -p "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
")
set -o pipefail; ([ -d layout ] && rsync -a “layout/” "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
" --exclude “DEBIAN” --exclude “MTN" --exclude “.git” --exclude “.svn” --exclude “.DS_Store” --exclude ".*” || true)
Making stage for tweak MTRider…
set -o pipefail; (mkdir -p "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
/Library/MobileSubstrate/DynamicLibraries/")
set -o pipefail; (cp /Users/Chris/Desktop/iOSre/BI/mtrider/.theos/obj/debug/MTRider.dylib "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
/Library/MobileSubstrate/DynamicLibraries/")
set -o pipefail; (if [[ ! -f “MTRider.plist” && ! -f “layout//Library/MobileSubstrate/DynamicLibraries/MTRider.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 MTRider.plist. Refer to http://iphonedevwiki.net/index.php/Cydia_Substrate#MobileLoader." >&2;
exit 1;
elif [[ -f “MTRider.plist” ]]; then
cp MTRider.plist “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos//Library/MobileSubstrate/DynamicLibraries/";
fi)
set -o pipefail; (mkdir -p "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
/DEBIAN”)
set -o pipefail; (sed -e ‘/^[Vv]ersion:/d; /^$/d; $a’ “/Users/Chris/Desktop/iOSre/BI/mtrider/control” > “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos//DEBIAN/control")
set -o pipefail; (echo “Version: 0.0.1-315+debug” >> "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
/DEBIAN/control”)
set -o pipefail; (echo “Installed-Size: 208” >> “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos//DEBIAN/control")
set -o pipefail; (COPYFILE_DISABLE=1 /opt/theos/bin/fakeroot.sh -p “/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/fakeroot” -r dm.pl -Zlzma -b "/Users/Chris/Desktop/iOSre/BI/mtrider/.theos/
” “./packages/com.tomorrow.mtrider_0.0.1-315+debug_iphoneos-arm.deb”)
dm.pl: building package com.tomorrow.mtrider:iphoneos-arm' in./packages/com.tomorrow.mtrider_0.0.1-315+debug_iphoneos-arm.deb’
open2: exec of lzma -c6 failed: No such file or directory at /opt/theos/bin/dm.pl line 117.
make: *** [internal-package] Error 2
不知道报错原因是什么~已经添加过dpkg-deb文件