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

Thanks a lot.it’s worked for me.

Thank you very for this. even i was stuck in this and this helps me so again thank you very much

thousand kudos! is working on my side as well

It worked for me too!

worked like a charm. saved my day. >_<

it worked …thanks

Awesome, it worked for me perfectly

Wonderful, many thanks, still works on ionic v4.

I know this is a somewhat old thread. But for anyone else experiencing this problem in 2022.
This error came about for me after I installed the latest version of Xcode via app.developer.com and not through the App Store. Xcode was installed into the Downloads folder, and that caused this active developer directory issue. All I did was remove Xcode from the Downloads folder, and replaced the older version with the new version inside the Applications directory, and the issue was fixed.

1 Like