美文网首页
Xcode报错Operation not permitted

Xcode报错Operation not permitted

作者: 牧兮 | 来源:发表于2025-07-30 10:59 被阅读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即可。

相关文章

网友评论

      本文标题:Xcode报错Operation not permitted

      本文链接:https://www.haomeiwen.com/subject/ixaxojtx.html