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

Solution:

Type below command in your terminal

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

You may also like...