Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wei18 opened this issue Jan 9, 2023 · 4 comments
Open

Comments

@Wei18
Copy link

Wei18 commented Jan 9, 2023

[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
Copy link
Collaborator

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
Copy link
Author

Wei18 commented Jul 17, 2023

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
Copy link
Collaborator

@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
Copy link
Author

Wei18 commented Jul 17, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants