Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

xcode-select active developer directory error

Saw the following error when running an npm install which required node-gyp... but could be triggered by anything which requires xcode-select.

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

What is the problem?

Answer*

Draft saved
Draft discarded
Cancel
5
  • This is the same solution as in this other answer. Commented Aug 13, 2021 at 16:38
  • worked for me immediately Commented Nov 22, 2022 at 21:40
  • It worked on MacOS Sonoma. Commented Nov 25, 2023 at 6:00
  • Awesome, it was so simple ❤️ Commented Mar 11, 2024 at 18:32
  • It works. 👍👍👍 Commented Mar 3 at 12:55

default

AltStyle によって変換されたページ (->オリジナル) /