Comments (11)
ToshKoevoets macrozone januswel uwbobanminic midrizi The easiest way for now is to add script
rm "${SRCROOT}/../node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m"
This will not hamper your derived folder
Just add this script inside build phase click + and then New run script phase ->> Then add The above line
but make sure to place the script at top of every one
if you have multiple Targets then add in each target Build phase same script
Attaching screen shot reference
from react-native-config.
Please, how can this be done for Android?
from react-native-config.
react-native-config generates a native-readable source file for each platform, before building
That's why deleting the cache works so well
I think it would be good to add a comparison the last modification time of .env
and the one of the last build, and regenerates if those are different
from react-native-config.
i just run into the same problem, is this a new? I had the impression it worked before without deleting derivedData
from react-native-config.
Same issue, initially suspected it might be related to our project. However, after testing 'Example/0.68.5', it appears the issue is not project-related.
from react-native-config.
I have added the script to delete the build cache before every building
![image](https://private-user-images.githubusercontent.com/43239/266280119-77cfc63d-8ec9-42d9-9ee7-633ad9a4e6a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg4NDc2MDcsIm5iZiI6MTcwODg0NzMwNywicGF0aCI6Ii80MzIzOS8yNjYyODAxMTktNzdjZmM2M2QtOGVjOS00MmQ5LTllZTctNjMzYWQ5YTRlNmExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjI1VDA3NDgyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5ZmQ5NGJiN2EzODAzZTVhN2RjMGYxNjJkNzMwNGEzNjk2MjRhMGIyNjU4ZWZlZmRmNzk2ODY0YjcxZTI3NTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.p6CmIeOlGwkTby958tLtMeVnEPmKUsPAWeo_RPmEeDE)
This works file!!
from react-native-config.
from react-native-config.
I'm having the same issue, but fixed it in suggested way on deleting rn-config cache.
Question is, do you know why this is happening?
from react-native-config.
In my experience i need to clean my build everytime i switch to another scheme before running it on the device using XCode.
Sure this slowing down the build time significantly.
from react-native-config.
But if i run the app through the cli without cleaning the build then it works. I don't to need to clean the build everytime i switch between scheme.
I run it like this:
ENVFILE=.env.production react-native run-ios --scheme 'YourProdScheme'
So for now i always run the ios app through the cli and doesn't therough XCode.
Hope it helps someone, thanks.
from react-native-config.
Related Issues (20)
- it is working react native 0.72.0 ? HOT 15
- How to modify the content of ".env file" by command in "scripts" of "package.json". HOT 1
- Change env value programatically (with persistence) HOT 3
- The app is always running in release mode after the RN upgrade from 0.71.7 to 0.72.3 HOT 2
- SigningConfig "releaseStaging" is missing required property "storePassword" when using gradlew to build HOT 1
- Release build unable to access .env file on android HOT 16
- Reference variables
- Missing .env in Github CI/CD in Android HOT 3
- output.versionCodeOverride is not getting override when version code is coming from .env
- Config is empty after upgrade to RN 0.71 HOT 31
- "/tmp/envfile" is buggy when its contents are empty string (iOS)
- Cannot invoke method toInteger() on null object HOT 2
- Inconsistent Environment File Loading in Android Studio vs React Native CLI
- ERROR in ./src/CONFIG.ts 3:0-41 [web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src'
- is it possible to pass params but not set ENVFILE when run assemble release HOT 1
- How to import NSExceptionDomains as an environment variable?
- Variable are UNDEFINED on IOS HOT 14
- Could not find method android() for arguments [dotenv_4bgzrl46y7i0xnvnmgzr6qa4c$_run_closure1@3fa75e8b] on project ':app' of type org.gradle.api.Project.
- How to read config in Kotlin class in react native 0.73? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-config.