Closed n0490b closed 3 years ago
Hey @n0490b,
Thanks for the code snippet ! I think this will actually help with another issue about a 'over zealous' version update. I know this 'nil' business can also be the result of not having first set a version/build through Xcode's UI. Your change makes total sense - if you feel like it, fork away and make that change! ❤️
Otherwise - I'll see if I can find a few mins this weekend 😅
hey @jdouglas-nz do you mean create a fork and make a PR?
@n0490b Correct! If you don't want to - I'll try and bring it in this weekend sometime. If you can't wait until then, be my guest 😊
@jdouglas-nz done
When I execute
increment_version_number_in_xcodeproj(scheme: "MyApp", build_configuration_name: "Release", bump_type: 'minor')
I get the errorget_version_number_from_xcodeproj(scheme: "MyApp", build_configuration_name: "Release")
works and returns 3.3.0Error
I believe I have narrowed the error down to this line in
increment_version_number_in_xcodeproj
but I'm not sure whats causing the errorI was able to get it working as intended by modifying the code for
set_all_xcodeproj_version_numbers
and looping through each config and comparing it with thebuild_configuration_name
param I pass inTargets
Relevant Schemes
Relevant Build configurations
Build Settings Marketing Version
info.plist
My setup
OSX 10.15.7 XCode 12.2 Fastlane 2.181.0 Versioning 0.4.4