Could not determine iOS SDK version: Could not get Xcode version.
I was using command line Appium. To resolve the issue you have to switch Xcode to the proper path.
The following command will help:
sudo xcode-select --switch /Applications/Xcode.app
If you have installed Xcode app in a different location, give that path instead of /Applications/Xcode.app.