Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Description
Generating GN files in: out/wasm_release
ERROR at //build/config/darwin/darwin_sdk.gni:109:7: Script returned non-zero exit code.
exec_script(rebase_path("//build/mac/darwin_sdk.py"), _args, "scope")
^----------
Current dir: /Volumes/Work/s/w/ir/cache/builder/engine/src/out/wasm_release/
Command: vpython3 /Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py --print-paths
Returned 1.
stderr:
xcode-select: error: Unable to get active developer directory. Use `sudo xcode-select --switch path/to/Xcode.app` to set one (or see `man xcode-select`)
Traceback (most recent call last):
File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 171, in <module>
sys.exit(main(sys.argv))
File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 150, in main
sdk_info = get_sdk_info(sdks)
File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 88, in get_sdk_info
sdk_info = SdkInfo(get_toolchain_path(), [])
File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 57, in get_toolchain_path
xcode_path = subprocess.check_output(['xcode-select', '-print-path'], timeout=300).decode('utf-8').strip()
File "/Users/chrome-bot/Library/Caches/vpython-root.502/store/cpython+fa1ipv0hcetnii1ulq4856mmfk/contents/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Users/chrome-bot/Library/Caches/vpython-root.502/store/cpython+fa1ipv0hcetnii1ulq4856mmfk/contents/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['xcode-select', '-print-path']' returned non-zero exit status 2.
See //build/toolchain/mac/BUILD.gn:7:1: whence it was imported.
import("//build/config/darwin/darwin_sdk.gni")
^--------------------------------------------
See //build/compiled_action.gni:179:14: which caused the file to be included.
deps = [ host_tool ]
^--------
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Activity
jmagman commentedon Feb 19, 2026
The right thing to do is figure out why the Mac wasm builds are pulling in the host build logic, see #162164
But the easiest thing to do is to re-add xcode as a dependency to the macOS wasm builders. You can see non-iOS/host builds doing this, for example Android:
flutter/engine/src/flutter/ci/builders/local_engine.json
Lines 233 to 235 in 230240c
jason-simmons commentedon Jul 28, 2026
Looked at this now.
The
macos/wasm_releaseandmacos/wasm_debug_unoptbuilders depend on the//build/toolchain/machost toolchain because they build Wimp/Impeller.Impeller includes some host binaries (the
impellercshader compiler and theflatcFlatBuffer compiler). These builds invoke//build/toolchain/macscripts that require Xcode.Running
flutter/third_party/gn/gn desc --all --tree out/wasm_release //flutter/wasmwill show the dependency tree of targets and their toolchains.The tree only uses the Wasm toolchain if I remove
//flutter/third_party/canvaskit:wimp_groupfrom the contents offlutter_web_sdk_archivein https://github.com/flutter/flutter/blob/master/engine/src/flutter/web_sdk/BUILD.gnIf this builder needs to do a full Wasm engine build including Wimp, then the CI environment should install Xcode.
mdebbar commentedon Sep 4, 2026
Re-added the xcode dependency to support the wimp build: #192238
Running with
ledconfirms that the PR fixes the build:https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Linux%20local_engine_builds/2/overview
https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac%20Staging%20Engine%20Drone/715/overview
https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Linux%20local_engine_builds/1/overview
https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac%20Staging%20Engine%20Drone/696/overview
Re-add Xcode and OpenJDK dependencies to macOS wasm local_engine buil…
github-actions commentedon Sep 23, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.