How to auto increment build number in Xcode [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I found many solutions and scripts on this site, but the easiest solution to increase the build number in Xcode is: Go to Build Phases in your TARGETS section and add Run Script Build Phase: Change Shell to /bin/bash and insert the following script: #!/bin/bash buildNumber=$(/usr/libexec/PlistBuddy -c "Print