if you have multiple xcode version use CMD.

sudo xcode-select -s /Applications/Xcode.app

or

sudo xcode-select -s /Applications/Xcode-7.2/Xcode.app