bad interpreter: Operation not permitted Command ios解决方法

595 阅读1分钟

iOS xcode编译的时候有时会突然编译报错的问题解决方法 bad interpreter: Operation not permitted

Command PhaseScriptExecution failed with a nonzero exit code

这种一般是权限的问题,可以用这种方式解决:

终端输入

xattr -rd com.apple.quarantine  当前文件目录

例如我的当前文件目录:/Users/xxxx/Desktop/laidian/base-hndax-ios/Pods/Target\ Support\ Files/Pods-ContactsApp/Pods-ContactsApp-resources.sh 或者从访达里面直接把文件拖进去

WX20240628-114324@2x.png