Why do I need to use `xattr -cr`?

It’s often the case that unless I run the command xattr -cr on the directory of my project, Xcode fails to build the project and reports a codesign error.

Typically I find that this command needs to be run every 10-15 minutes.

Can I change something within the project or Xcode to avoid doing this?

Thanks for your help.


I think it might be related to iCloud Drive and Xcode not playing nicely.
See this post and the one below for a possible fix.

Hope that helps!

Thanks, Theo. I store my OF projects on iCloud Drive so that certainly applies to me.