Try to "Enable user home service" in User&Group -> Advanced -> User Home (for your NAS)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: