SiarheiFedartsou / fastlane-plugin-versioning

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

Error when trying to use increment_build_number_in_plist #23

Closed mhilland closed 4 years ago

mhilland commented 6 years ago

I'm receiving the following error when trying to use increment_build_number_in_plist in combination with the fastlane function latest_testflight_build_number. It's saying:

[!] 'build_number' value must be a String! Found Integer instead.

I was under the impression that I'd be able to use the two in combination the same way as fastlane's native increment_build_number, as documented here: https://docs.fastlane.tools/actions/latest_testflight_build_number/#2-examples

What's strange is that in your docs you show the build_number value as using an integer, so why is it telling me its expecting a string?

Has anyone had luck with this? Thanks!

doogilasovich commented 6 years ago

I'm new to fastlane and Ruby, but the .to_s method seems to work...

    increment_build_number_in_plist(
        build_number: (latest_testflight_build_number + 1).to_s,   
    )
jdouglas-nz commented 4 years ago

Closing this due to inactivity. If you still have this issue or want further help, please open another ticket for me :)