{"id":102,"hash":"1d9a491ca4b5a2ad5d1312a2ec62f946b53741ef053e3f6672af1f7c20e0b826","pattern":"xcode-select active developer directory error","full_message":"Saw the following error when running an npm install which required node-gyp... but could be triggered by anything which requires xcode-select.\n\n  xcode-select: error: tool 'xcodebuild' requires Xcode, but active\n  developer directory '/Library/Developer/CommandLineTools' is a command\n  line tools instance\n\nWhat is the problem?","ecosystem":"npm","package_name":"xcode","package_version":null,"solution":"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)\n\nSolution:\n\nInstall Xcode (get it from  https://appstore.com/mac/apple/xcode) if you don't have it yet.\nAccept the Terms and Conditions.\nEnsure Xcode app is in the /Applications directory (NOT /Users/{user}/Applications).\nPoint xcode-select to the Xcode app Developer directory using the following command:\n\nsudo xcode-select -s /Applications/Xcode.app/Contents/Developer\n\nNote: Make sure your Xcode app path is correct.\n\nXcode: /Applications/Xcode.app/Contents/Developer\nXcode-beta: /Applications/Xcode-beta.app/Contents/Developer","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error","votes":1089,"created_at":"2026-04-19T04:41:20.059088+00:00","updated_at":"2026-04-19T04:51:03.642243+00:00"}