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

iOS: Version string assertion #171

Open
piotr-cz opened this issue Mar 1, 2023 · 0 comments
Open

iOS: Version string assertion #171

piotr-cz opened this issue Mar 1, 2023 · 0 comments

Comments

@piotr-cz
Copy link

piotr-cz commented Mar 1, 2023

At this moment for an iOS version, any string may be used, however Apple has specific rules.

Failing to use this format results in error when submitting app from XCode.

Reference: Apple Developer > Documentation > CFBundleShortVersionString:

This key is a user-visible string for the version of the bundle. The required format is three period-separated integers, such as 10.14.1. The string can only contain numeric characters (0-9) and periods.
Each integer provides information about the release in the format [Major].[Minor].[Patch]

I've been using SemVer like 1.0.0-beta.3, before I found out (the hard way) that specific format is required.

My idea is to assert ios.version with a regex and when it fails, exit trapezedev with a handy notice such as Supplied version doesn't match Apple requirements: [Major].[Minor].[Patch]

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

1 participant