]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-135101: When choosing the default simulator device, don't use `simctl --set testin...
authorJoe Rickerby <joerick@mac.com>
Wed, 4 Jun 2025 00:31:43 +0000 (01:31 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Jun 2025 00:31:43 +0000 (08:31 +0800)
On a fresh Xcode install (including some CI provider configurations), there is
no pre-existing testing set that can be used to identify simulator models. Use
the default device set to detect available models instead. Live testing
simulators are still created in the testing set.

iOS/testbed/__main__.py

index c05497ede3aa6151bacbd75e013a5e012d146684..1146bf3b988cda5609dd211b27cbd8678d47a422 100644 (file)
@@ -127,7 +127,7 @@ async def async_check_output(*args, **kwargs):
 async def select_simulator_device():
     # List the testing simulators, in JSON format
     raw_json = await async_check_output(
-        "xcrun", "simctl", "--set", "testing", "list", "-j"
+        "xcrun", "simctl", "list", "-j"
     )
     json_data = json.loads(raw_json)