iOS could not stat active Xcode path

issue:xcrun: Error: could not stat active Xcode path

1
2
3
4
S#1:
xcode-select is the answer. You are either pointing at the wrong path or you are not doing it as a root user. Try this in Terminal:
sudo xcode-select -switch /Applications/Xcode.app
and then type your password.