Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error on Monterey: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance #60

Open
ksonbol opened this issue Apr 14, 2022 · 5 comments

Comments

@ksonbol
Copy link

ksonbol commented Apr 14, 2022

Hi, running ./install on macOS Monterey 12.3.1 fails with the following error:

Install RDM to /Applications? (Y/n): Y

An error occured; try again

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
@gothvf
Copy link

gothvf commented May 2, 2022

Try this:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

@jorgejhms
Copy link

Hi, after running
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

I get this result:

xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'

What I should do?

@ayoauo
Copy link

ayoauo commented May 22, 2022

Hi, after running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

I get this result:

xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'

What I should do?

hi! did you find how to fix it?have the same problem. :(

@YellowTech
Copy link

You need to install Xcode from the app store. Beware it's nearly 20 GBs in size. Then the aforementioned command should work.

@petercsiba
Copy link

In case Xcode is already installed, the error suggests a general problem with Xcode, not the RDM library.
The one liner fingers-crossed solution:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
# When proceeding, I also had to setup more stuff:
# xcodebuild -license
# xcodebuild -runFirstLaunch

For context:

This problem happens when xcode-select developer directory was pointing to /Library/Developer/CommandLineTools when a full regular Xcode was required (happens when CommandLineTools are installed after Xcode)

https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants