Command line tools for Xcode 12 for macOS Universal Apps

Hi, is there a version of Command line tools or Xcode 12 for macOS Universal Apps and if yes, where can I find it?

Accepted Reply

OK, I figured this out, one has to select the beta version of Xcode as the default before installing the command line tools:

Code Block
sudo xcode-select --switch /Applications/Xcode-beta.app
sudo xcode-select --install

Replies

No. Please install the Xcode 12 Beta for Universal Apps and use xcode-select to select that Xcode. Then the command line tools will use that version.
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.
OK, I figured this out, one has to select the beta version of Xcode as the default before installing the command line tools:

Code Block
sudo xcode-select --switch /Applications/Xcode-beta.app
sudo xcode-select --install

Hello Is Xcode Command Line tool is safe to install