mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-04 20:52:23 +01:00
App Store Connect returns the marketing version exactly as it was typed
there ("6.6"), while Shorebird and the app bundle both use the three-part
pubspec version ("6.6.0"). The MAS patch script string-compared the two,
so `register-baseline` aborted with "No Shorebird release found for
6.6+152" even though 6.6.0+152 existed.
Compare version strings semantically via Gem::Version (build number still
has to match exactly), then adopt Shorebird's spelling for everything
downstream, since that is what the installed bundle's
CFBundleShortVersionString and `shorebird patch --release-version` agree
on. Without this the same mismatch would also have failed the installed-app
check and spun `install_or_update_mas_app!` until its timeout.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>