You can call lanes of the same platform or a general lane outside of the platform definition. To switch lanes while executing a lane, use the following code: lane :deploy do |options|īuild(release: true) # that's the important bitīuild # it also works when you don't pass parametersīuild_config = (options ? "Release" : "Staging")īuild_ios_app(configuration: build_config)įastlane takes care of all the magic for you. Increment_build_number(build_number: options) To access those values, change your lane declaration to also include |options| before_all do |lane, options| To pass parameters from the command line to your lane, use the following syntax: fastlane key:value key2:value2įastlane deploy submit:false build_number:24 New to fastlane? Click here to open the installation & setup instructions firstġ) Install the latest Xcode command line tools xcode-select -installģ) Navigate to your project and run fastlane init
0 Comments
Leave a Reply. |