How to set environment variables in fastlane?
You can add environment variables in before_all
. Try this.
platform :ios do before_all do ENV["FASTLANE_DONT_STORE_PASSWORD"] = "1" ENV["FASTLANE_USER"] = "" ENV["FASTLANE_PASSWORD"] = "" end desc "GENERATE SCREENSHOT" lane :Snaps do capture_screenshots endend
To not store your keys in git, you can pass all parameters of all actions using environment variables.
You can edit your ~/.bash_profile
to include something like
export FASTLANE_DONT_STORE_PASSWORD ="1"export FASTLANE_USER =""export FASTLANE_PASSWORD =""