Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here:
This issue is still present in Xcode 10.2.1. After cleaning the build folder, the error went away.