xcframework-xcframeworks.sh:/bin/sh: bad interpreter: Operation not permitted
前言
下载朋友能正常运行的项目,自己运行后就一直报错
错误:/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-ggmabnzmhenjvvfrhgjrvvqkahvq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/xxx-xcframework.build/Script-1FE0FEAE8C2D6FF56C877C4B32AC4E37.sh: /Users/xxx/xxxx/Pods/Target Support Files/xxx-xcframework/xxx-xcframework-xcframeworks.sh: /bin/sh: bad interpreter: Operation not permitted
解决方案一: 参考:xcode编译报错:bad interpreter: Operation not permittedCommand PhaseScriptExecution failed with a nonzero 在工程根目录,用这个命令来去除这个属性:
1
xattr -d -r com.apple.quarantine ./*
解决方案二: 参考:Pods not installed properly with Xcode 11.3.1 (Operation not permitted) 在Targets -> Build Phases
-> In Embed Pods Frameworks
里下面变成如下
1
2
xattr -d com.apple.quarantine "${PODS_ROOT}/Target Support Files/Pods-xxx/Pods-xxxx-frameworks.sh"
"${PODS_ROOT}/Target Support Files/Pods-Jasonette/Pods-Jasonette-frameworks.sh"
This post is licensed under CC BY 4.0 by the author.