This works for me. As long as the path to Xcode does not contains a space, this error does not occur.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: