I find that .h with extended attributes files will cause Xcode crashed.
I tried to remove extended attributes like this link How do I remove the "extended attributes" on a file in Mac OS X? But nothing helps.
Even that xattr xattr Moya-umbrella.h
outputs nothing.
xattr -c Moya-umbrella.h
changes nothing.
xattr -rd com.apple.quarantine Moya/
changes nothing.
I tried that cat Moya-umbrella.h > Moya-umbrella.dat
get a file without extended attributes (@).
But when I cat Moya-umbrella.dat > Moya-umbrella3.h
will get a file with extended attributes(@).
I researched that ditto
can copy file without extended attributes.
ditto --norsrc --noextattr --noqtn --nocache --nopreserveHFSCompression Alamofire-umbrella.dat Alamofire-umbrella3.h
but It failed again.
I have tried any methods that I researched but all not work.
My MacOS is 10.13.6 (High Sierra)
I am developing iOS projects but Xcode will crash when copying files with extended attributes(@) like ".h".
I have struggled with this for more time but nothing helps.