新建工程时,编译报错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即可。











网友评论