Mac升级为macOS Sierra Xcode报错

描述: 公司的项目 拿到自己的 电脑上 直接运行,结果在模拟器上都运行不了,显示的是code sign 的报错,应该是 证书的问题,但是 这不是 真机调试 啊,这是模拟器啊

报错如下:

/Users/chungaofang/Library/Developer/Xcode/DerivedData/Liangyihui-bymqxauxmtgrwqchtfhuizhzgspg/Build/Products/Debug-iphonesimulator/oncologynews.app: resource fork, Finder information, or similar detritus not allowed

Command /usr/bin/codesign failed with exit code 1

解决:

1. cd 到项目文件

2. 运行xattr -rc . 即可


原理:这个命令相当于 清除 许多的缓存文件等等,就当做是 初始化的一些东西

感谢这个博客的记载:

http://blog.csdn.net/benpaofengling/article/details/52680542

你可能感兴趣的:(Mac升级为macOS Sierra Xcode报错)