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

target ignored in increment_version_number_in_xcodeproj #62

Open
benomatis opened this issue Apr 26, 2021 · 2 comments
Open

target ignored in increment_version_number_in_xcodeproj #62

benomatis opened this issue Apr 26, 2021 · 2 comments

Comments

@benomatis
Copy link

I have 2 targets, and I only would like one of them to be changed, so I set the target option on increment_version_number_in_xcodeproj but it appears to be ignored, my other target is still updated.

@jdouglas-nz
Copy link
Collaborator

hey @benomatis , not sure if this is still an issue for you or not, but was wondering whether you'd be able to provide some more context as to your use-case (i.e. a simplified project), or potentially if there is a spec unit test in this repo that doesn't do what it should

@benomatis
Copy link
Author

@jdouglas-nz I accepted the fact it does what it does, but I can easily imagine it's because of both targets having the same bunlde ID / name and stuff (both use the same variables in their Info.plist) file, otherwise one is my default, and the other my UITest target.

This is what I have in the Fastfile:


platform :ios do
  desc "Push a new internal testing build to TestFlight"
  target = "TrainingLaneMobile"
  lane :deploy do |options|
    is_prod = options[:env] == "production"
    ENV['ENVFILE'] = is_prod ? '.env.production' : '.env.staging'
    ios_path = "ios/" + target
    xcodeproj = ios_path + ".xcodeproj"
    increment_version_number_in_xcodeproj(
      version_number: $version_number,
      xcodeproj: xcodeproj,
      target: target
    )

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