Auto-increase Build number in Xcode
There are lots of tutorials online showing how to implement automatic Build number increase in Xcode.
The simplest one is adding a new Run Script Phase to Project Build Phases and inserting agvtool bump. Unfortunately, I found that this causes a strange issue when the project build randomly stops at the very end and just shows Build Cancelled without any explanation or error. While this happens only some of the time, the project Archiving process fails with the same outcome pretty much every time.