Error when building iOS ... Xcode Compatibility Problem

Getting this error when trying to build for iOS:


Xcode Compatibility Problem

 

Corona SDK can’t find the following components in the

Xcode 0 iOS SDK located at /Library/Developer/CommandLineTools :

 

Xcode needs to be at least version 7 (currently 0)

 

 

Please update Corona SDK to the latest Daily Build (it might also be necessary to re-install Xcode)


I have the latest versions of everything … why does it say “Xcode 0”?

Mac OS: Sierra 10.12.2 (16C67)

Corona SDK: CoronaSDK 2017.3025

XCode: Version 8.2.1 (8C1002)

Thanks!

-Mark

Do you have multiple versions of xcode installed?

Did you try selecting active xcode version by running this command in terminal?

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

Do you have the commandline tools installed. Try running below command in terminal. It will prompt to install commandline tools if not.

xcode-select --install

Thanks!  That solved it.

Do you have multiple versions of xcode installed?

Did you try selecting active xcode version by running this command in terminal?

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

Do you have the commandline tools installed. Try running below command in terminal. It will prompt to install commandline tools if not.

xcode-select --install

Thanks!  That solved it.