Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Configuration not updating on updating new key in env #759

Open
abhishek-mittal opened this issue May 27, 2023 · 3 comments
Open

Configuration not updating on updating new key in env #759

abhishek-mittal opened this issue May 27, 2023 · 3 comments

Comments

@abhishek-mittal
Copy link

HI,

I have been trying to update my environment file but it's not reflecting while I'm creating my APPs build for android and ios.

Example:

my old .env
KEY_1="some_value" KEY_2="some_more_value"

my new .env
KEY_3="some_new_value"

now KEY_3 is not identified by my builds. Please help

@ronilitman
Copy link

Waiting for an answer too. Meanwhile, doing pod deintegrate && pod install and re running the project will work.

@pmusaraj
Copy link

pmusaraj commented Jun 8, 2023

I'm having the same issue, my temporary fix is to add a prep lane to Fastlane with the following cache clearing command:

File.write(File.expand_path("../node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m"), "#define DOT_ENV @{  };")

@huanglong6828
Copy link

#692
Also you need to select an option in “Provide build settings from” in order to get env variable

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants