Update build number automatically

In SwiftUI 6 when developing for MacOS in Xcode 26, there does not seem to be a way to provide an automatic increment of the current build number, i.e. "Current Project Version" in settings.

Does anyone have a solution that works in the latest version of Xcode. i.e. 26?

All the solutions that I have tried are based on older versions that involve running scripts to update the build file, (.xcconfig) or the .info.plist file which simply will not work in the current configuration.

Update build number automatically
 
 
Q