I was trying to solve the problem in this post, and it seems like xattr -cr . is not actually removing the com.apple.FinderInfo attribute, nor is xattr -c <filename> or xattr -d com.apple.FinderInfo <filename>.
Here's what I tried, and how the shell responded:
- listed all files with extended attributes, showed 15 files
FlackBook-Pro:BasicEQ julianflack$ xattr -lr .
./Source/PluginProcessor.h: com.apple.lastuseddate#PS: +N?g
./Source/PluginProcessor.h: com.apple.metadata:kMDLabel_mgte763loh3jfiptugpk6t3rl4: ????? ?Sv?pӰ=y??X?1
?7d?LHNd;?Ӊ?????<?-) LR?B?_?1ּy|??Q&??0_ ??©?)?J?
./Source/PluginProcessor.cpp: com.apple.lastuseddate#PS: ?L?g
./Source/PluginProcessor.cpp: com.apple.metadata:kMDLabel_mgte763loh3jfiptugpk6t3rl4: ?2?}?F????x???z9y??G??%?L?H7?L?
et cetera........
- ran
xattr -cr ., confirmed zero exit code, ranxattr -lr .again - 3 files remain with attribute
com.apple.FinderInfo:
FlackBook-Pro:BasicEQ julianflack$ xattr -cr .
FlackBook-Pro:BasicEQ julianflack$ echo "$?"
0
FlackBook-Pro:BasicEQ julianflack$ xattr -lr .
./Builds/MacOSX/BasicEQ.xcodeproj: com.apple.FinderInfo:
./Builds/MacOSX/build/Debug/BasicEQ.vst3: com.apple.FinderInfo:
./Builds/MacOSX/build/Debug/BasicEQ.component: com.apple.FinderInfo:
- ran
xattr -c <filename>, confirmed zero exit code, ranxattr -lr . - the specified file was still there with the same attribute
FlackBook-Pro:BasicEQ julianflack$ xattr -c ./Builds/MacOSX/BasicEQ.xcodeproj
FlackBook-Pro:BasicEQ julianflack$ echo "$?"
0
FlackBook-Pro:BasicEQ julianflack$ xattr -lr .
- ran
xattr -d com.apple.FinderInfo <filename>, confirmed zero exit code, ranxattr -lr . - same problem
FlackBook-Pro:BasicEQ julianflack$ xattr -d com.apple.FinderInfo ./Builds/MacOSX/BasicEQ.xcodeproj
FlackBook-Pro:BasicEQ julianflack$ echo "$?"
0
FlackBook-Pro:BasicEQ julianflack$ xattr -lr .
Other things I've tried:
- confirmed I am running bash and not zsh
type xattrreturnsxattr is hashed (/usr/bin/xattr)