xcode编译报错:bad interpreter: Operation not permittedCommand PhaseScriptExecution failed with a nonzero

使用unity软件导出了iOS包,结果在编译过程中报错:

/bin/sh: bad interpreter: Operation not permitted

Command PhaseScriptExecution failed with a nonzero exit code

没有执行权限,chmod 777也不行。了解一下,原来出现这个问题的主要原因是:-rwxrwxrwx@ 文件的属性最后带个@,这个@代表的是更多的一些属性,具体含义不太清楚,但有它就是执行不了

解决办法:在工程根目录,用这个命令来去除这个属性:

xattr -d -r com.apple.quarantine ./*

你可能感兴趣的:(ios,objective-c)