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

undefined method `build_settings' #16

Closed jackdem closed 4 years ago

jackdem commented 6 years ago

Hi

When i call the following code:

  version = get_build_number_from_plist(
        target: scheme_name,
        build_configuration_name: 'Release'
      )

      increment_build_number_in_plist(
        target: scheme_name,
        build_number: version + 1
      )

I get the error:

undefined method `build_settings' for nil:NilClass

bundler: failed to load command: fastlane (/usr/local/bin/fastlane) NoMethodError: [!] undefined method `build_settings' for nil:NilClass

Any idea of the cause is it to do with this plugin as my script works with this code commented out?

SiarheiFedartsou commented 6 years ago

@jackdem Hi! Thanks for reporting it. It will be great if you share some sample project in which issue is reproduced. Also could you please try to substitute target with scheme? Will it work in this case?

jdouglas-nz commented 4 years ago

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