Fastlane: How can I "increment_build_number" only one target?

I have two targets in my Xcode project:

  • MyAwesomeApp (build 1)
  • MyGreatApp (build 1)

After the increment_build_number action, they both access:

  • MyAwesomeApp Build 2
  • MyGreatApp (build 2)

But I only expect to apply it to one goal. So when I execute something like this one more time: increment_builder_number(scheme: "MyAwesomeAppScheme")

They refer to:

  • MyAwesomeApp Build 3
  • MyGreatApp (build 2) <- This build number should not change

Is there a way to achieve this? Thank!

+6


source to share


3 answers


I could easily add this option to the action fastlane

, but it needed an agvtool

equivalent agvtool

. A step increment_build_number

is basically a wrapper for agvtool

.



You can find more information on Apple Docs: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/agvtool.1.html.

+5


source


How about specifying the .plist file you want as a parameter? something like:



plist_path: "./Info.plist"

      

+2


source


Here is a plugin for increasing the build number.

This is how it looks in Fastfile:

increment_build_number_in_plist(        
   target:"MyAwesomeApp"
)

      

+1


source







All Articles