Installing Command line tools for XCode-14 fails for my M1

I performed the latest software XCode update, and now can not get the command line tools to install. I have tried both the “xcode-select --install” route with no luck. I also downloaded the Command_Line_Tools_for_Xcode_14.dmg directly from Apple and installed it.

But either way when I try to run /usr/bin/make I get

iam@CSL-CAS9857 ~ % make
sh: line 1:  3176 Abort trap: 6           /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null
make: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null' failed with exit code 34304: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'make', requesting installation of command line developer tools.

Seems like I finally managed to get it working via the mysterious

xcodebuild -runFirstLaunch
10

Well Command line tools for 14.0 only lasted a day, so I am glad they fixed this.

I am still facing the issue. xcodebuild -runFirstLaunch command didn't solve the issue. Can anyone help me?

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk

I tried the below commands also. sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

sudo xcode-select -switch /Library/Developer/CommandLineTools

To add a little more info to this issue: I was having errors with Homebrew upgrades and a "no Git found" when opening VS Code; the error said I need to install the Xcode Command lIne tools. I tried installing using the command line: "xcode-select --install" which began downloading the tools, but then a dialog box popped up saying "Can't install the Software". Then, I tried: "xcodebuild -runFirstLaunch" and that didn't do anything other than return another command prompt. I reinstalled Xcode, repeated the two steps above with no joy.

When I noodled about in Xcode, I saw a link to the Command Line tools DMG for v14 and downloaded/installed it. So far VS Code is no longer complaining about GIT and my Homebrew apps updated properly again.

I haven't tried compiling anything yet so YMMV.

I still can't install on OS 14.0.1, Xcode 14.1

xcodebuild -runFirstLaunch xcode-select --install 

Popup - "Can't install the software"

Anybody know how to fix this?

Install the xcode cli DMG manually here https://developer.apple.com/download/all/?q=xcode

Installing Command line tools for XCode-14 fails for my M1
 
 
Q