How can I remove an uploaded build with a bad build number?

My jenkins build process uses 'xcrun altool --upload-app' to upload builds for test flight which all worked well until I switched to Xcode 13. In Xcode 13 the app was uploaded but instead of using the CFBundleVersion from the app as the build number is generated its own. So now the latest build has build numbers 7 rather than the correct build number which should look like 4.5.12345.

I have since updated my scripts to use 'xcrun altool --upload-package' using --bundle-version to set the build number but it will not allow me to upload anything because it sees build number 7 as being higher than 4.5.12346.

I have marked the builds with incorrect build numbers as rejected but that doesn't help.

Is there any way to get around this? Updating to a new app version is not really a solution.

  • I have decided to get around this problem by going with the flow and changing my CFBundleVersion to a simple integer value.

Add a Comment