Try check Preferences in Xcode under Locations and be sure you have selected your Xcode version in the Command Line Tools dropdown:
Try check Preferences in Xcode under Locations and be sure you have selected your Xcode version in the Command Line Tools dropdown: