Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here:
Go to project Build settings -> Swift Compiler - code generation -> Optimization Level -> For both Debug & Release select option "Fast,Single-File Optimaiztion[-O]
settings -> Swift Compiler - code generation -> Optimization Level