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)