I am trying to implement Fastlane into a Xcode project containing over 30 apps.
At this moment I am stuck with the lane that builds the app for the "AppStore" as it has to change the version and the build number for a specific target. The code for my lane is:
desc "Archives and creates the app for the AppStore"
lane :build_appstore do |options|
scheme = options[:scheme]
output_directory = options[:output_directory]
configuration = options[:configuration]
export_method = options[:export_method]
bundle_id = options[:bundle_id]
version = options[:version]
build = options[:build]
# Used for increment_version_number. Does it work?
ENV["APP_IDENTIFIER"] = options[:bundle_id]
increment_version_number(
version_number: version
)
increment_build_number(
build_number: build
)
gym(
scheme: scheme,
output_directory: output_directory,
configuration: configuration,
export_method: export_method
)
end
The lanes works but when I have a look at the project, I see that all targets have the version and build number changed which is a little but of inconvenient.
Any ideas??
I ended up create using xcodeproj ruby and I create the following lane: