Which version of MacOS ?
You should try to reinstall, maybe from a different site.
You can use: https://xcodereleases.com
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: