I recently updated my Mac to macOS Monterey (12.3.1) and tried to open root. However, I get the following error message:
warning: no such sysroot directory: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk’
C system headers (glibc/Xcode/Windows SDK) must be installed.
error:entry with relative path at the root level is not discoverable
{ ‘name’: ‘’, ‘type’: ‘directory’,
^~
Error in modulemap.overlay!
I am aware of the fact that questions like this have been asked here before, however their solutions didn’t work for me. I uninstalled Xcode 13.1 and installed Xcode 13 with its CLT. I deinstalled and reinstalled root via home-brew. I still get this error. Any suggestions?
Thanks for the quick answer. Sadly, doing this just gives me an error which tells me that the CLT are already installed. Should I update them (although I think root doesn’t work with the updated versions of Xcode)?
Yes, the latest ROOT version should work on Monterey, we even have an official package for it (you could try using that one instead of the homebrew package).
Unfortunately I am not sure what could cause the errors you are seeing. @henryiii would you know?
If I do this, I get the following error message:
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
You need to install Xcode from the Mac App Store for that command to work. If you only have the command line tools, and not full Xcode, I don’t think it works - I’m not sure how to reset the command-line tools without Xcode. Maybe you can uninstall and reinstall? I believe we’ve seen ROOT work with only some warnings produced without Xcode installed, but I’m not sure - usually we’d recommend having Xcode.
Interestingly, that’s reversed from what I’d expect, I’d have thought the 12.3 path would have been the real path, and the unversioned path would be the symlink.