Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here:
I was having this same problem and I found the problem was that I had changed the build system to "New Build System" after reading an article on "how to speed up your builds" (This is the article btw here)
So to go back to the standard build system:
Hope it helps someone and don't waste hours trying to find out why this was not working!