ionic-team / ionic-team/trapeze

iOS: Version string assertion

Open
#171 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
377
Forks
50
Avg merge
1m
Merged PRs (30d)
1

Description

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](https://developer.apple.com/documentation/bundleresources/information_property_list/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]*

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.