Xcode/Fastlane Environment Variables not present after archive

Viewed 561

We have to set different values for some properties based on the schema and it works properly when we are building from Xcode directly (which is expected behaviour) but setting env variables from Fastfile like in the example below leads us to the build without values for env variables.

build_app(scheme: "SCHEMA_NAME", xcargs: "TOKEN='#{ENV["TOKEN"]}'")

What's the best practice for saving different values for env variables outside of source code.

1 Answers
Related