Try running following command. This works for me.
defaults delete com.apple.dt.Xcode
Topic:
Developer Tools & Services
SubTopic:
Xcode