xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory Different

 This is a common error I found when I upgrade from node 8.8 to node 10.1 within my mac osx seirra.

> node build.js || nodejs build.js

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

node 10.1 is not a stable release and I had to backdate it with the stable version.
In addition, to fix the issue I had to run few commands to identify the location of command line tools.

https://stackoverflow.com/questions/18533761/find-out-the-path-location-to-command-line-tools-for-xcode?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

/usr/bin/clang --version


Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin



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

Comments

  1. I have found that this site is very informative, interesting and very well written. keep up the nice high quality writing. Sell Apple Developer Enterprise Account

    ReplyDelete

Post a Comment

Popular posts from this blog

ENOENT: no such file or directory, rename : node_modules/async

react-quill Integrate quill-image-resize-module