[3.13] gh-135101: When choosing the default simulator device, don't use simctl --set testing (GH-135102) (#135114)

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.
(cherry picked from commit dba9de731b)

Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
Miss Islington (bot) 2025-06-04 02:54:42 +02:00 committed by GitHub
parent b9512c3b93
commit 3a65f46353
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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)