Thoes make package 出错 bad permissions 777 (急啊...)

搜索了很久没找到原因,急求指点啊
hanlideMacBook-Pro:demohook beyonehan$ make package

Making all for tweak demoHook…
make[2]: Nothing to be done for internal-library-compile'. Making stage for tweak demoHook… dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775) make: *** [internal-package] Error 2 hanlideMacBook-Pro:demohook beyonehan$ open ./ hanlideMacBook-Pro:demohook beyonehan$ make package Making all for tweak demoHook… make[2]: Nothing to be done for internal-library-compile’.
Making stage for tweak demoHook…
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
make: *** [internal-package] Error 2


hanlideMacBook-Pro:demohook beyonehan$ make package messages=yes

Making all for tweak demoHook…
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=demoHook 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 "/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/
")
set -o pipefail; (/opt/theos/bin/fakeroot.sh -p “/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/fakeroot” -c)
set -o pipefail; (mkdir -p "/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/
")
set -o pipefail; ([ -d layout ] && rsync -a “layout/” "/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/
" --exclude “DEBIAN” --exclude “MTN" --exclude “.git” --exclude “.svn” --exclude “.DS_Store” --exclude ".*” || true)
Making stage for tweak demoHook…
set -o pipefail; (mkdir -p “/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos//Library/MobileSubstrate/DynamicLibraries/")
set -o pipefail; (cp /Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/obj/debug/demoHook.dylib "/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/
/Library/MobileSubstrate/DynamicLibraries/”)
set -o pipefail; (if [[ ! -f “demoHook.plist” && ! -f “layout//Library/MobileSubstrate/DynamicLibraries/demoHook.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 demoHook.plist. Refer to http://iphonedevwiki.net/index.php/Cydia_Substrate#MobileLoader.” >&2;
exit 1;
elif [[ -f “demoHook.plist” ]]; then
cp demoHook.plist “/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos//Library/MobileSubstrate/DynamicLibraries/";
fi)
set -o pipefail; (mkdir -p "/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/
/DEBIAN”)
set -o pipefail; (sed -e '/[1]ersion:/d; /^$/d; $a' “/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/control” > “/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos//DEBIAN/control")
set -o pipefail; (echo “Version: 0.0.1-3+debug” >> "/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/
/DEBIAN/control”)
set -o pipefail; (echo “Installed-Size: 1536” >> “/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos//DEBIAN/control")
set -o pipefail; (COPYFILE_DISABLE=1 /opt/theos/bin/fakeroot.sh -p “/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/fakeroot” -r dpkg-deb -Zxz -b "/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/
” “./packages/com.yourcompany.demohook_0.0.1-3+debug_iphoneos-arm.deb”)
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
make: *** [internal-package] Error 2


  1. Vv ↩︎

chmod改回0755就好了呗

我之前试过了,不知道是不是我的用法不对. chmod 0755 + 文件 (我查到的是这样)

hanlideMacBook-Pro:~ beyonehan$ cd /Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos; clear; pwd
/Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos
hanlideMacBook-Pro:.theos beyonehan$ chmod 0755 /Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos
hanlideMacBook-Pro:.theos beyonehan$ chomd +X 0755 /Volumes/Transcend/逆向工程/ 逆向操作实例/iosopendev/demohook/.theos
-bash: chomd: command not found
hanlideMacBook-Pro:.theos beyonehan$ chomd +X /Volumes/Transcend/逆向工程/ 逆向 操作实例/iosopendev/demohook/.theos
-bash: chomd: command not found
hanlideMacBook-Pro:.theos beyonehan$ chmod 0755 /Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos
hanlideMacBook-Pro:.theos beyonehan$ cd /Volumes/Transcend/逆向工程/逆向操作实例/iosopendev/demohook/.theos/_/DEBIAN
hanlideMacBook-Pro:DEBIAN beyonehan$ chmod 0755 control
hanlideMacBook-Pro:DEBIAN beyonehan$
然后我还在 /Applications/Xcode.app/Contents/Developer/usr/bin/make 这个目录下也执行了命令还是不行啊 ,还是报这个错啊dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)

该怎么改啊,我试了好多次还是不成功啊

帖子不要沉啊,求回复 啊,晚上都睡不着了

这种中文路径、加外部磁盘的习惯,以后还有很多坑等着你

外置磁盘还好吧,如果是Apple钦定的格式的话
[aka HFS/APFS]

确实是因为工程建在 原因 , 折腾了一整天了.谢谢 ,以后确实要改掉这种习惯:sob:

MAC的硬盘空间伤不起,我是用的创见的号称MAC专用卡,256G.没想到还是这样各种坑啊,折腾一天了.已解决感谢回复

没在mac上弄过外挂磁盘了,很久以前在linux上捣鼓遇到过各种坑,后来自动躲避这类操作了。。。

不过,本质上(应该)还是权限问题。

嗯我估计目录中文chmod操作无效 perl脚本里哪里可能也挂了