DEV Community

Discussion on: How to manage staging and production environments in React Native

Collapse
 
jake41 profile image
jake41

ENVFILE=.env.staging react-native run-ios

This step is giving me error:

/node_modules/react-native-config/ios/ReactNativeConfig/ReactNativeConfig.m:2:9: fatal error: 'GeneratedDotEnv.m' file not found

import "GeneratedDotEnv.m" // written during build by BuildDotenvConfig.ruby

Collapse
 
calintamas profile image
Calin Tamas

It looks like an issue with react-native-config linking.
Check here: github.com/luggit/react-native-con...

Collapse
 
smakosh profile image
smakosh

I have solved that here: github.com/luggit/react-native-con...

Collapse
 
mahesh__nandam profile image
Mahesh Nandam

I succeed to solve this by removing react-native-config from Pod file and manually linking.