From e210669748c2117894f21e60e573e384d37a2e12 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 14 May 2024 14:37:09 -0700 Subject: [PATCH] [docs] Suggest using same Xcode version as bots (flutter/engine#52821) Document that when using RBE, users should ensure the locally installed Xcode toolchain version matches that of the bots, otherwise they're likely to experience slow builds due to cache misses. Ideally, we should also check the value automatically against the `sdk_version` specified in the relevant `et` build config itself. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/docs/rbe/rbe.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/engine/src/flutter/docs/rbe/rbe.md b/engine/src/flutter/docs/rbe/rbe.md index 2232187a4d..6de0293cfd 100644 --- a/engine/src/flutter/docs/rbe/rbe.md +++ b/engine/src/flutter/docs/rbe/rbe.md @@ -158,11 +158,16 @@ RBE builds can also be slow if your network connection is bandwidth constrained. Anecdotally, even with a warm cache, I have noticed slow builds from home due to RBE saturating my low-tier Comcast Business connection. -For Googlers on a corp macOS device, both RBE and non-RBE builds can be slow -due to various background and monitoring processes running. See -[here](https://buganizer.corp.google.com/issues/324404733#comment16) for how -to disable some of them. You should also disable Spotlight scanning of the -engine source directory as described +For developers on a macOS host device, ensure that you're using the same version +of Xcode as is in use on the bots. The value of "Build version" returned by +`xcodebuild -version` should match the `sdk_version` value set in +`ci/builders/local_engine.json` for the build you're running. + +For Googlers on a corp macOS device, both RBE and non-RBE builds can be slow due +to various background and monitoring processes running. See +[here](https://buganizer.corp.google.com/issues/324404733#comment16) for how to +disable some of them. You should also disable Spotlight scanning of the engine +source directory as described [here](go/building-chrome-mac#add-the-source-directory-to-the-spotlight-privacy-list). When RBE builds are slow, non-RBE builds may be faster, especially incremental