method: select Xcode version in Command Line Tools in Location(Click Xcode and then Preferences)
Before:
After: