添加图片后xcode报错:resource fork, Finder information, or similar detritus not allowed

时间:2023-03-08 16:51:00

/Users/songximing/Library/Developer/Xcode/DerivedData/Children-cvqgzlzddltkfndhdmzedxbnoxwx/Build/Products/Debug-iphonesimulator/Children.app: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero exit code

resource fork, Finder information, or similar detritus not allowed
解决方法:
进入到DerivedData目录,把所有文件都删了。
打开项目工程目录,cd到工程目录下,执行"xattr -rc ."。

参考 https://www.jianshu.com/p/ef6933fc6c61