This worked for a week but the problem came back. I also found a thread that said it is caused by syncing your project with iCloud. I indeed recently did that and now that I've undone it, it seems to be working as normal.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: