简体   繁体   中英

Xcode/Fastlane Environment Variables not present after archive

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.

the best way to do that is using.env files, please see more details here

Please feel free to open discussion here, if you need more helphttps://github.com/fastlane/fastlane/discussions/categories/qa

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM