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

increment_version_number_in_xcodeproj asks for scheme but it shouldn't #98

Open
dawid-bytys opened this issue Aug 28, 2024 · 1 comment

Comments

@dawid-bytys
Copy link

Hey, I have a problem. Looking at this code:

if params[:target]
  set_version_number_using_target(params, next_version_number)
elsif params[:build_configuration_name] && params[:scheme]
  set_version_number_using_scheme(params, next_version_number)
else
  set_all_xcodeproj_version_numbers(params, next_version_number)
end

it should update version for every scheme but it keeps asking me for scheme. My Fastfile:

platform :ios do
  lane :update_version do |options|
    increment_build_number_in_xcodeproj(
      scheme: options[:scheme],
      build_configuration_name: "#{options[:scheme]} Debug"
    )

    increment_build_number_in_xcodeproj(
      scheme: options[:scheme],
      build_configuration_name: "#{options[:scheme]} Release"
    )

    if options[:bump_type]
      increment_version_number_in_xcodeproj(
        bump_type: options[:bump_type]
      )
    end
  end
end

Command:

fastlane ios update_version scheme:Staging bump_type:minor

Screenshot 2024-08-28 at 13 04 40

@paynerc
Copy link

paynerc commented Sep 5, 2024

If I recall correctly, it actually is asking for the scheme to fetch the version number, which it does before it sets it. I am looking into addressing this as well as #72

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

2 participants