Skip to content

Commit e55abf8

Browse files
committed
Explicitly determine default simulator to ensure simd is available.
1 parent 078ed9a commit e55abf8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Platforms/Apple/testbed/__main__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,14 @@ def run_testbed(
271271
update_test_plan(location, platform, args)
272272
print(" done.")
273273

274+
# xcodebuild doesn't guarantee that the CoreSimulatorService daemon is
275+
# running prior to using a simulator, but calling `xcrun simctl list` does.
276+
# Determining the default simulator that *would* be used is a cheap action;
277+
# so use that as a way to ensure that the CoreSimulatorService daemon is
278+
# running.
279+
default_simulator = select_simulator_device(platform)
274280
if simulator is None:
275-
simulator = select_simulator_device(platform)
281+
simulator = default_simulator
276282
print(f"Running test on {simulator}")
277283

278284
xcode_test(

0 commit comments

Comments
 (0)