Hi all, reposting this from here: https://unix.stackexchange.com/questions/789849/xattr-c-not-removing-com-apple-finderinfo-attribute
I came to this problem because my Xcode project was failing to build due to the error "resource fork, Finder information, or similar detritus not allowed" (was trying the solutions on this post).
Basically, running xattr -cr .
in the terminal on my project directory removes all extended attributes except com.apple.FinderInfo, which stays on all .xcodeproj and .xcworkspace files. I've tried everything under the sun, from sudo
to xattr -d
to dot_clean
to tar
to rsync
and nothing works. Is this just an immortal attribute that can never be removed? I'm truly at a loss here, this is for my senior thesis project.
Just circling back on this one because I figured out what the problem was; I had my iCloud set to back up my Desktop & Documents, and that was adding the attribute. Every time I removed it, it automatically got added back on because it was trying to upload to iCloud. I stopped uploading desktop & documents, and that solved this issue.