Sorry, I forgot to mention something else: it's good to check which version of "xcodebuild" you have installed on usr/lib. In my case it was really old. On terminal, Xcode-select --install does the trick.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: