react-native/scripts
Harry Tormey 1fb7a25f7b Add iOS Validate Environment Script (#19750)
Summary:
Fixes #19694 this diff adds an iOS environment validation script as requested by hramos.

 A similar script for Android exists: scripts/validate-android-test-env.sh.

This script:

- Validates that the minimum required Xcode version is installed (people using Xcode 8 with a recent release may encounter cryptic build errors).

- Validates the correct Node version is installed (Node 10 is not fully supported at the time, Node 6 is no longer supported).

<!--
  Required: Write your motivation here.
  If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged.
-->

Run ./scripts/validate-ios-test-env.sh on a properly setup OSX machine and verify it works, change the version comparison and make sure it fails.

<!--
  Required: Write your test plan here. If you changed any code, please provide us with
  clear instructions on how you verified your changes work. Bonus points for screenshots and videos!
-->

<!--
  Does this PR require a documentation change?
  Create a PR at https://github.com/facebook/react-native-website and add a link to it here.
-->

<!--
  Required.
  Help reviewers and the release process by writing your own release notes. See below for an example.
-->

[INTERNAL] [ENHANCEMENT] [scripts] - Add iOS validate environment script

<!--
  **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

    CATEGORY
  [----------]      TYPE
  [ CLI      ] [-------------]    LOCATION
  [ DOCS     ] [ BREAKING    ] [-------------]
  [ GENERAL  ] [ BUGFIX      ] [ {Component} ]
  [ INTERNAL ] [ ENHANCEMENT ] [ {Filename}  ]
  [ IOS      ] [ FEATURE     ] [ {Directory} ]   |-----------|
  [ ANDROID  ] [ MINOR       ] [ {Framework} ] - | {Message} |
  [----------] [-------------] [-------------]   |-----------|

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
Pull Request resolved: https://github.com/facebook/react-native/pull/19750

Differential Revision: D9005151

Pulled By: hramos

fbshipit-source-id: a69ef2a6e513e580089c791fd44a0e70c2a3f240
2018-08-01 20:46:58 -07:00
..
circleci Fix test_android test failure, add libpulse0 dep 2018-07-24 16:33:49 -07:00
versiontemplates Removed last traces of @providesModule from React Native 2018-04-26 08:30:54 -07:00
.packager.env Move YGStyle to seperate file and add constructors 2018-02-20 05:55:36 -08:00
.tests.env bump build tools to 26.0.3 (#19831) 2018-06-25 17:17:25 -07:00
android-e2e-test.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
android-setup.sh Bump Android NDK to r17b (#20357) 2018-07-30 14:02:11 -07:00
bump-oss-version.js Prettier files with shebang 2018-05-11 13:52:30 -07:00
ios-configure-glog.sh fix undefined_arch error in Xcode 10 beta (#19841) 2018-06-28 15:32:39 -07:00
ios-install-third-party.sh OSS: upgrade Folly 2016.09.26 => 2016.10.31 2018-04-13 17:33:23 -07:00
launchPackager.bat Fix for 17497 (#17498) 2018-06-28 14:17:38 -07:00
launchPackager.command Uniformizes how THIS_DIR is computed in xplat/js 2018-07-19 05:16:22 -07:00
objc-test-ios.sh Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
objc-test-tvos.sh Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
objc-test.sh Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
packager.sh Uniformizes how THIS_DIR is computed in xplat/js 2018-07-19 05:16:22 -07:00
process-podspecs.sh GLog fix on case sensitive APFS macOS 2018-01-28 22:29:51 -08:00
publish-npm.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
react-native-xcode.sh Packager linking when using custom debug configuration on iOS device (#16451) 2018-07-03 18:18:30 -07:00
run-android-ci-instrumentation-tests.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
run-android-emulator.sh Uniformizes how THIS_DIR is computed in xplat/js 2018-07-19 05:16:22 -07:00
run-android-local-integration-tests.sh Skip flaky ScrollView tests 2017-03-13 13:30:31 -07:00
run-android-local-unit-tests.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
run-ci-e2e-tests.js Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
run-instrumentation-tests-via-adb-shell.sh Fix Android comment and docblock typos 2017-12-03 20:16:36 -08:00
sync-css-layout.sh Update to MIT license 2018-02-16 18:31:53 -08:00
test-manual-e2e.sh Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
try-n-times.js Prettier the rest of ReactNative 2018-05-11 13:52:30 -07:00
validate-android-device-env.sh Consolidate CI/local test scripts 2018-05-15 17:27:52 -07:00
validate-android-sdk.sh Improve Android testing scripts 2016-12-13 17:13:35 -08:00
validate-android-test-env.sh Update buck website 2018-06-27 12:03:21 -07:00
validate-ios-test-env.sh Add iOS Validate Environment Script (#19750) 2018-08-01 20:46:58 -07:00