1

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, ran xattr -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, ran xattr -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, ran xattr -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 xattr returns xattr is hashed (/usr/bin/xattr)

1 Answer 1

0

I struggled with this and just figured it out.

The problem is that I had those folders inside of iCloud, so they were being synced. When I turned off iCloud Backup/Sync (whatever it's called -- I'm not a Mac guy), that "fixed" it. I also had to pull down my repo again into the structure that was supposed to be there, since when you turn iCloud off, that renames the folders and puts them into some kind of "iCloud Backup." I nuked that folder and just rebuilt the structure (with iCloud off) and I didn't have the same problem anymore.

Not sure if this is your case either -- but it hopefully (maybe?) might give you some clue as to what is going on.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.