resource fork, Finder information, or similar detritus not allowed

拿到一个项目源码,第一次运行出现上面的错误,错误原因不明【大概是因为接到的文件保留了原来的的一些设置,所以需要被清除这些设置】,
方法一:


resource fork, Finder information, or similar detritus not allowed_第1张图片
851342-20170426172543725-1332022106.png

执行下列的方法即可解决:
【1】退出xcode
【2】打开终端,输入“xattr -cr 你的项目路径”/xattr -cr "Full path of your project"
【3】打开项目,clean,重新运行即可

方法2:
My problem is every change I make in the code and execute again the error reappears. Then I find a solution to execute the command automatically every compilation/execution of code.

resource fork, Finder information, or similar detritus not allowed_第2张图片
tqigS.png

add "Run Script". Then I put the command "xattr -cr ." in the field.

参考:http://www.cnblogs.com/xiaobaichangan/p/6769714.html
https://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-3-3-resource-fork-finder-information

你可能感兴趣的:(resource fork, Finder information, or similar detritus not allowed)