How to stop App Store Connect from silently auto-incrementing build numbers

App Store Connect used to reject builds that were uploaded if they had the same version/build number combo, but at some point in the recent past App Store Connect (or maybe it's xcodebuild?) has started to just increment the build number by 1 and the upload succeeds. But this results in me not knowing which build version I really have on App Store Connect. I'm using xcodebuild to archive and upload to App Store Connect.

Anyone know why this is happening, and if there's a way to not automatically increment the build number?

Thanks

If you declare your own build number in the project, it will be taken into account automatically:

Define it here in General tab in Identity section:

Then you will get it also here in Build Settings:

To clarify: App Store Connect used to reject uploads if they had the same version/build number combo as a build that was previously uploaded. Now it no longer rejects these, but silently increments the build number so that the submission succeeds. But what I want is the old behavior of rejecting the upload if a build is submitted with the same build number

Accepted Answer

Please see prior forum discussions on changes to build numbers in Xcode 13.

For anyone else coming here:

Using xcodebuild:

  • Add the key manageAppVersionAndBuildNumber as a bool with a value of 0 to your export options plist file (provided to xcodebuild with the -exportOptionsPlist argument.

Using Xcode GUI:

  • Uncheck the box that says 'Manage Version and Build Number'
How to stop App Store Connect from silently auto-incrementing build numbers
 
 
Q