I found several other posts that show how to add a script to increase the build number using the script:
Best way to increase build numbers?
Xcode Project Build Number
Can Xcode insert version number in library file name when creating?
But what I want to do only increases the build number when I use ARCHIVE (both before and after).
Example: If the current build number is 21, then when I select Product> Archive, the build number will be increased to 22, it will complete its process of building and creating an archive file with build number 22, and then when it finishes archiving, it will increase the number builds up to 23.
jsherk Mar 24 2018-12-12T00: 00Z
source share