My team has CI setup to automatically build our app with Fastlane, which features functions to automatically increment the build number and version numbers.
However, to my knowledge, Fastlane (and any other ASC API clients) don't know the state of deployed builds unless they ask for a specific one. This leads to a disruption in our CI workflow, as App Store Connect rejects uploading of builds with the same version number.
I'm wondering if there's a simple way to get the version information of the latest
publicly released build, whatever latest
happens to refer to at runtime. That way, we can build a fully automated function into our CI system that increments the version number if and only if the latest publicly deployed release is different than the last one reflected in source (thinking a .latest_release
text file or similar).
Is such a retrieval of the latest
build possible with the API?