Xcode报错Operation not permitted

2025-07-30  本文已影响0人  牧兮

新建工程时,编译报错Operation not permitted问题,具体如下:

===>/Users/mac/Code/Proj/Pods/Target Support Files/Pods-Proj/Pods-Proj-resources.sh: line 20: /Users/mac/Code/Proj/Pods/resources-to-copy-Proj.txt: Operation not permitted
realpath: illegal option -- m
usage: realpath [-q] [path ...]
:20: error: Unexpected failure

解决办法:

在Xcode中,找到Build Settings标签,搜索user script sandboxing,改为No即可。

上一篇 下一篇

猜你喜欢

热点阅读