Giter Site home page Giter Site logo

Comments (6)

kyawmoehaynes avatar kyawmoehaynes commented on June 26, 2024

+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.

glesage avatar glesage commented on June 26, 2024

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.

haziqhafizuddin avatar haziqhafizuddin commented on June 26, 2024

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.

capitalist avatar capitalist commented on June 26, 2024

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.

MichaelHuy avatar MichaelHuy commented on June 26, 2024

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.

XamarinPOC avatar XamarinPOC commented on June 26, 2024

./node_modules/react-native-config//ios/ReactNativeConfig/BuildDotenvConfig.ruby (LoadError)

Nothing worked for me

from react-native-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.