I already tried that. I ran:
Code Block sudo xcode-select --install |
A window poped up and prompted me to install command line tools. After agreeing, it launched Software Update which installed the command line tools. However, it seems that it installed the x86 version:
Code Block $ clang -O -o foo foo.c |
xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): could not use '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' because it is not a compatible arch). |
I am using Xcode 12A8158a which came preinstalled on the DTK.