From 05a06dd5e832eb18ad6f440b01a1abef638b3693 Mon Sep 17 00:00:00 2001 From: a-maurice Date: Fri, 30 Jun 2023 10:57:11 -0700 Subject: [PATCH] Run simulator install as root --- scripts/gha/test_simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gha/test_simulator.py b/scripts/gha/test_simulator.py index e90b843186..8fa01703fb 100644 --- a/scripts/gha/test_simulator.py +++ b/scripts/gha/test_simulator.py @@ -517,7 +517,7 @@ def _create_and_boot_simulator(apple_platform, device_name, device_os): print("::warning ::Unable to find %s version %s, will fall back to %s" % (apple_platform, device_os, available_versions[-1])) device_os = available_versions[-1] - args = ["xcodes", "runtimes", "install", "%s %s" % (apple_platform, device_os)] + args = ["sudo", "xcodes", "runtimes", "install", "%s %s" % (apple_platform, device_os)] logging.info("Download simulator: %s", " ".join(args)) subprocess.run(args=args, check=False)