macOS 26.6 Command Line Tools broken?

After upgrading my Mac from macOS 26.5 to 26.6, the Command Line Tools seem to be broken, e.g. when calling make or git:


% /usr/bin/git

Error loading required libraries. If there is an ongoing installation please wait for it to complete. Otherwise reinstall. (dlopen(@rpath/libxcodebuildLoader.dylib, 0x0001): Symbol not found: _XPCTypeBool

Referenced from: <ADF86974-DE00-31C0-B4E0-15DF98AE0956> /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/CoreDevice

Expected in: <37B53E42-0118-3C9B-BFA8-73DB82BC3B85> /Library/Apple/System/Library/PrivateFrameworks/Mercury.framework/Versions/A/Mercury)

git: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null' failed with exit code 65280: (null) (errno=Invalid argument)

xcode-select: Failed to locate 'git', requesting installation of command line developer tools.


... and git tries to reinstall the Command Line Tools.


I do have the current version, installed from

https://appledb.dev/device/Command-Line-Tools-for-Xcode.html?filter=release

Command Line Tools for Xcode 26.6 Jun 25, 2025


% pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

package-id: com.apple.pkg.CLTools_Executables

version: 26.6.0.0.1781586504

volume: /

location: /

install-time: 1785441272


but, strange enough, this seems to contain binaries for macOS 26.5:


% ls -o /Library/Developer/CommandLineTools/SDKs

total 0

lrwxr-xr-x 1 root 14 Jul 30 21:54 MacOSX.sdk -> MacOSX26.5.sdk

drwxr-xr-x 7 root 224 Feb 27 11:40 MacOSX15.4.sdk

lrwxr-xr-x 1 root 14 Jul 30 21:54 MacOSX15.sdk -> MacOSX15.4.sdk

drwxr-xr-x 7 root 224 Apr 28 21:36 MacOSX26.5.sdk !!!

lrwxr-xr-x 1 root 14 Jul 30 21:54 MacOSX26.sdk -> MacOSX26.5.sdk

Mac mini, macOS 26.6

Posted on Aug 2, 2026 10:27 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 3, 2026 1:52 AM

I am running macOS 26.6 with the current Apple Developer command line tools 26 that were installed on June 26. My Apple git when run without any arguments simply dumps a usage and command display. That April 28 date for the MacOSX26.5.sdk is strange as mine shows June 26.


I would recommend removing and reinstalling the Command Line Tools 26, but this time, installing either from the command line (e.g. sudo xcode-select --install) or directly from:

https://developer.apple.com/download/all/?q=Command%20Line%20Tools


AppleDB.dev is not an official Apple site and caveat emptor prevails.


8 replies
Question marked as Top-ranking reply

Aug 3, 2026 1:52 AM in response to Reinhard Zierke

I am running macOS 26.6 with the current Apple Developer command line tools 26 that were installed on June 26. My Apple git when run without any arguments simply dumps a usage and command display. That April 28 date for the MacOSX26.5.sdk is strange as mine shows June 26.


I would recommend removing and reinstalling the Command Line Tools 26, but this time, installing either from the command line (e.g. sudo xcode-select --install) or directly from:

https://developer.apple.com/download/all/?q=Command%20Line%20Tools


AppleDB.dev is not an official Apple site and caveat emptor prevails.


Aug 3, 2026 11:28 PM in response to Reinhard Zierke

meet exactly same issue on MBP M1 and here are my steps:


1. search "locate git" and find


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


which makes the zsh never complains again, and breaks the infinite loop of updating CommandLineTools both in System Settings/General/Software Update and command line (softwareupdate --list)


but Xcode still can not launch.


2. clean all Derived data and Caches. search again and find XcodeSystemResources.pkg in


/Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg


open it via finder, after that Xcode 26.6 starts normally. (after two days, finally!!!)


Hope it helps.


ref link1: https://stackoverflow.com/questions/67886103/xcode-command-line-tools-not-able-to-locate-git

ref link2: https://apple.stackexchange.com/questions/220465/xcode-doesnt-start

Aug 3, 2026 1:57 AM in response to WheelieNick

No, restarting the Mac after my tries didn't help.


I first reinstalled the Command Line Tools from the installation window that pops up when I call git or make. Then I manually downloaded and installed the current 26.6 Tools from the Apple Developer Page. I also tried the macOS 27 Beta 4 Command Line Tools but they also contain a 26.5 directory, not a 26.6 one, and didn't work either.


I *can* start both git and make with a long path as e.g. /Library/Developer/CommandLineTools/usr/bin/git.

Only the wrappers /usr/bin/git and /usr/bin/make fail.

macOS 26.6 Command Line Tools broken?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.