Download XCode from AppStore
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
Then everything started working fine.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: