code 6 is just “something happend”.
code 6
To find what it’s exactly, look at the build log in the output tab:
And don’t forget to select show output from: build:
show output from: build
And then you can look for exact errors here.