SwiftUI

[엑스코드(Xcode)오류]xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance 오류 처리

엑스코드(Xcode) 개발툴에서 빌드하는 과정에 발생하는 오류이다. CommandLineTools를 사용하지 못하는 오류가 발생!!


[해결방법]

xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools
# Change the path if you installed Xcode somewhere else.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

 

 

Xcode – Apple Developer

Xcode includes everything you need to create amazing apps for iPhone, iPad, Mac, Apple Watch, and Apple TV.

developer.apple.com

 

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

 

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 Xco…

stackoverflow.com

 

https://github.com/nodejs/node-gyp/issues/569

 

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a

EDITED FOR PEOPLE JUST GETTING HERE See #569 (comment) and #569 (comment), the warning can just be ignored. Command Line Tools works fine, you do not need the full Xcode. See https://github.com/nod…

github.com

 

Leave a Reply

error: Content is protected !!