Xcode cancels Archive build without reason
I have a project in Xcode for an iOS application. The build is often cancelled by xcode with no explanation and no hint in the logs as to why.
The logs show as green and it just says Build Stopped - No Issues. Searching the expanded transcripts shows no errors that I can see.
So far I have tried:
Cleaning the project (CMD+SHIFT+K)
Cleaning the build folder of the project (CMD+SHIFT+OPT+K)
Manually deleting the contents of the derived data folder
Restart Xcode
Reboot machine
All of the above has been tried MANY times but it always just cancels. What could cause this?
The only moderately unusual thing about the project is that it's in a workspace and uses cocoapods (but lots of people do this, so I don't think that can be the reason).
Please help!
Xcode 4.6.2-OTHER, OS X Mountain Lion (10.8.3)