question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validate Environment Scripts

See original GitHub issue

For Discussion

Looking for contributors interested in making the React Native experience better for everyone. We currently have a script in the repo, scripts/validate-android-test-env.sh, that will raise any issues with your local Android environment, such as a missing AVD configuration, or a lack of a proper Android SDK.

We do not have an equivalent for iOS development environments. A script could be used to:

  • Validate the minimum required Xcode version is installed (people using Xcode 8 with a recent release may encounter cryptic build errors)
  • Validate the correct Node version is installed (Node 10 is not fully supported at the time, Node 6 is no longer supported)

Furthermore, these scripts (iOS, Android) could be invoked as part of the react-native CLI (if needed) in order to surface any issues as early as possible.

Please tag me in any PRs!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hgalecommented, Jun 16, 2018

@hramos please excuse my rusty bash but this should work.

0reactions
hramoscommented, Dec 13, 2018

The CLI has been moved out of the repo. Do you want to create a new issue in https://github.com/react-native-community/react-native-cli to discuss how this might be implemented in the new package?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bash Cheatsheet: check if environment variables are set or file ...
Bash Cheatsheet: check if environment variables are set or file/symlinks exists + more. A bash scripting cheat sheet for developers who just ...
Read more >
Checking if a Linux Environment Variable Is Set or Not
One of the common requirements in scripts is to test if a particular environment variable is set or not. This helps in handling...
Read more >
A Lean Library to Validate Your Environment Variables ...
A library that will help you validate that the values in your environment are valid according to the comments in your .env.sample file....
Read more >
How to check if an environment variable exists and get its value?
I am writing a shell script. In this shell script, I am have a variable that either takes a default value, or the...
Read more >
Understanding validation in script tools—ArcGIS Pro
Validation means checking that all tool parameters are correct and providing useful messages if they are not. There are two parts to validation:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found