SiarheiFedartsou / fastlane-plugin-versioning

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

Error with increment_version_number_in_xcodeproj when setting scheme #47

Closed 942v closed 4 years ago

942v commented 4 years ago

Hi,

When I execute:

increment_version_number_in_xcodeproj( bump_type: bumpType, scheme: scheme )

It's changing all the configurations to the new value calculated from the correct scheme.

So basically I have 4 schemes:

Marketing versions: A: 1.1.1 B: 2.2.2 C: 3.3.3 D: 4.4.4

When I do increment_version_number_in_xcodeproj( bump_type: patch, scheme: D )

It executes: xcodebuild -showBuildSettings -scheme D -project MyProject.xcodeproj

And then the configurations get updated to:

A: 4.4.5 B: 4.4.5 C: 4.4.5 D: 4.4.5

If I add build_configuration_name

The command fails with:

Unknown method 'set_version_number_using_scheme'

prathmeshranaut commented 4 years ago

This function isn't coded in https://github.com/SiarheiFedartsou/fastlane-plugin-versioning/blob/master/lib/fastlane/plugin/versioning/actions/increment_version_number_in_xcodeproj.rb

The above PR fixes your issue.

942v commented 4 years ago

nice thx!

jdouglas-nz commented 4 years ago

@942v - I have finally merged this. apologies for the lag time. Please update and give it a go.