想给 一个APP 写一个插件,在绕了一大圈以后 发现APP被加壳,使用dumpdecrypted 砸壳后,想重新打包并且签名,不然的话 插件已载入 程序直接卡死在主界面,签名时候提示
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: input file: /Users/inspires/Downloads/Payload/dod.app/dod does not contain a matching architecture for specified '-a arm64 182320' option
Payload/dod.app/: the codesign_allocate helper tool cannot be found or used
随后google查资料 查到了codesign_allocate.c文件内的一段实现代码
for(i = 0; i < narch_signs; i++){
if(arch_signs[i].found == FALSE)
fatal("input file: %s does not contain a matching architecture "
"for specified '-a %s %u' option", input,
arch_signs[i].arch_flag.name, arch_signs[i].datasize);
}
writeout(archs, narchs, output, 0777, TRUE, FALSE, FALSE, NULL);
if(errors)
return(EXIT_FAILURE);
else
return(EXIT_SUCCESS);
对于mach-O 结构不懂的我, 只能卡在这里。。。 有知道怎么解决的么。。
,