Hasty Briefsbeta

Bilingual

Automatic build number incrementing in Xcode

10 months ago
  • #Build Version
  • #Xcode
  • #Automation
  • Create a .xcconfig file named BuildNumber.xcconfig and add it to .gitignore.
  • Add a Pre-Action Script to both 'Run' and 'Archive' actions in Xcode scheme to update build number using date and time format.
  • Reference the .xcconfig in your project by setting it as the base configuration file.
  • Set the Current Project Version in target build settings to $(CURRENT_PROJECT_VERSION).
  • Display the build version number in your app using CFBundleVersion.