Comments (6)
+1
I have the following error while running react-native run-ios.
./ReactNativeConfig/BuildDotenvConfig.ruby:3:in 'require': no such file to load -- json (LoadError) from ./ReactNativeConfig/BuildDotenvConfig.ruby:3 Command /bin/sh failed with exit code 1
from react-native-config.
As an update, I am able to run the app if I manually create a GeneratedDotEnv.m
with the right content in /Users/_my_user_/Library/Developer/Xcode/DerivedData/_my_app_/Build/Products
And delete the run script from ReactNativeConfig Build Phases (the run script that attempts to run ./ReactNativeConfig/BuildDotenvConfig.ruby
)
Any advice is appreciated
from react-native-config.
i'm having the same issue as well. by deleting the run script from ReactNativeConfig Build Phases, then i could run my app without any error.
Any other way on doing this correctly?
from react-native-config.
This seemed to happen for me, from not having a ruby that was accessible for the ReactNativeConfig build script. I use zsh and rvm to set my ruby - it doesn't. So it couldn't find a ruby.
I ended up doing:
sudo ln -s $(which ruby) /usr/bin/ruby
To symlink my current ruby to /usr/bin/ which made this error go away.
from react-native-config.
This seemed to happen for me, from not having a ruby that was accessible for the ReactNativeConfig build script. I use zsh and rvm to set my ruby - it doesn't. So it couldn't find a ruby.
I ended up doing:
sudo ln -s $(which ruby) /usr/bin/ruby
To symlink my current ruby to /usr/bin/ which made this error go away.
Show this error on my terminal Mac?
ln: /usr/bin/ruby: Operation not permitted
from react-native-config.
./node_modules/react-native-config//ios/ReactNativeConfig/BuildDotenvConfig.ruby (LoadError)
Nothing worked for me
from react-native-config.
Related Issues (20)
- Multiple commands produce 'node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m' HOT 7
- 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
- Changes only propagate if I remove derived data HOT 11
- 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.
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.