update application on apple store via ci

Hi, I'm trying to update the application on apple store using a script in my ci infrastructure.


the version is the same, I've changed only the build version.

I've created the ipa, and after I have executed:


xcrun altool --upload-app --type ios -f "build/hICNTools.ipa" -u $USERNAME -p "$PASSWORD" --verbose

after that I obtain:

Error: code -18000 (ERROR ITMS-90062: "This bundle is invalid. The value for key CFBundleShortVersionString [1.0] in the Info.plist file must contain a higher version than that of the previously approved version [1.0]. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring")

If I change the version string (i.e. i set 1.1) I need to create another entry in the https://appstoreconnect.apple.comwhere I can select the uploaded bundle.

Can you tell me how I can automate the release of an update?

Thank you very much

Angelo