docs: update BAZEL.md crosstool error instructions (#22018)

PR Close #22018
This commit is contained in:
Miško Hevery 2018-02-13 15:12:40 -08:00 committed by Victor Berchet
parent 4ec40c6ab2
commit 2654357c72
1 changed files with 3 additions and 0 deletions

View File

@ -194,10 +194,13 @@ source: https://github.com/bazelbuild/bazel/issues/4603
If VSCode is not the root cause, you might try: If VSCode is not the root cause, you might try:
- Quit VSCode (make sure no VSCode is running).
``` ```
bazel clean --expunge bazel clean --expunge
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license sudo xcodebuild -license
bazel build //packages/core # Run a build outside VSCode to pre-build the xcode; then safe to run VSCode
``` ```
Source: https://stackoverflow.com/questions/45276830/xcode-version-must-be-specified-to-use-an-apple-crosstool Source: https://stackoverflow.com/questions/45276830/xcode-version-must-be-specified-to-use-an-apple-crosstool