I think this is related to the automatic saving file feature.
I noticed that sometimes if i save the file manually and build, it completes correctly, but if i don't save the file and let xcode do it, it will fail on the first build, and then on second try succeed.
This is so annoying to be honest.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: