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

bug: iOS buildNumber only allows number #20

Closed
tobiasmuecksch opened this issue Nov 28, 2021 · 1 comment
Closed

bug: iOS buildNumber only allows number #20

tobiasmuecksch opened this issue Nov 28, 2021 · 1 comment

Comments

@tobiasmuecksch
Copy link

tobiasmuecksch commented Nov 28, 2021

Up until now, I always used the same version identifier for MARKETING_VERSION and CURRENT_PROJECT_VERSION.

Therefore I expected that setting for example 2.2.2 as buildNumber, would set this value for CURRENT_PROJECT_VERSION in the project.pbxproj file.

Instead it sets 1 as value. I assume, that the input is casted to the number type, which seems to resolve to 1 by default, if the input does not match the expected type.

This is an excerpt of my config.yml

platforms:
  ios:
    targets:
      App:
        bundleId: com.my-cool-app
        version: 2.2.2
        buildNumber: 2.2.2
        incrementBuild: true

This is the current result in the project.pbxproj file:

CURRENT_PROJECT_VERSION = 1;

This is what I expected instead:

CURRENT_PROJECT_VERSION = 2.2.2;

Maybe I'm breaking some convention which I'm not aware of (but Xcode accepts that value without any warning). In that case I'd suggest to show a warning, in order to prevent future obsolete issue tickets.

@tobiasmuecksch
Copy link
Author

tobiasmuecksch commented Nov 29, 2021

Alright. I found my (copy-paste) mistake....
After adding buildNumber I missed to remove incrementBuild 🙄

Since buildNumber and incrementBuild are conflicting properties, I'd suggest to throw an error if both are set, to prevent silly people like me, to open new issues 😂

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