SiarheiFedartsou / fastlane-plugin-versioning

Extends fastlane versioning actions. Allows to set/get versions without using agvtool and do some other small tricks.
MIT License
512 stars 64 forks source link

Add support for fetching App Store previously approved version number #74

Open Wei18 opened 1 year ago

Wei18 commented 1 year ago

[12:51:07]: ERROR: Asset validation failed (90062) This bundle is invalid. The value for key CFBundleShortVersionString [5.32.1] in the Info.plist file must contain a higher version than that of the previously approved version [5.32.1]. Please find more information about CFBundleShortVersionString at ...

It would be nice to fetch version before archive app.

jdouglas-nz commented 1 year ago

hey @Wei18, -- the GetAppStoreVersionNumberAction will return the current version of the app - there doesn't seem to be any additional metadata in the response Apple sends to return the 'last' version. Before you archive, you could use that action, get the version number, bump it as your requirements need, then archive?

Wei18 commented 1 year ago

Hey @jdouglas-nz The GetAppStoreVersionNumberAction can not return version while the app state pending develop release. It's like Spaceship::ConnectAPI::App.find("appId").get_live_app_store_version

I'd like to call ruby api (from Fastlane) but swift version like

Spaceship::ConnectAPI::App.find("appId").app.get_edit_app_store_version

Thanks

jdouglas-nz commented 1 year ago

@Wei18 seems like it's a new feature for this plugin then to me 🤔

The existing action calls an unauthed API Apple exposes, but this request - if it goes through AppStore Connect APIs - probably needs Auth.

Please correct me if I'm wrong on the above!

I'll do some investigation and see what I can find out.

Wei18 commented 1 year ago

@jdouglas-nz,

Thanks! It's new feature useful, when we wanna deploy next version during Apple is reviewing submission (this ERROR happened).

example: 5.32.1 is pending developer release or kind of state in submission 5.32.0 is ready for sale aka API GetAppStoreVersionNumberAction