I had this issue with an unchanged project which had built fine before. The issue turned out to be the RAM Disk that I was using for XCode intermediate files being full!
XCode was reporting this and other issues which were solved by deleting older intermediate files.