I was running Xcode 7 until I upgraded to Xcode 8 which I now have an error code 1.
Error message:
Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
Not sure how to fix this error. I have tried cleaning the project but that did not work either.