(
simulatorsData: { devices: Record<string, SimulatorDevice[]> },
predicate: (device: SimulatorDevice) => boolean,
)
| 28 | } |
| 29 | |
| 30 | function findSimulator( |
| 31 | simulatorsData: { devices: Record<string, SimulatorDevice[]> }, |
| 32 | predicate: (device: SimulatorDevice) => boolean, |
| 33 | ): SimulatorDevice | undefined { |
| 34 | for (const runtime in simulatorsData.devices) { |
| 35 | const found = simulatorsData.devices[runtime].find(predicate); |
| 36 | if (found) return found; |
| 37 | } |
| 38 | return undefined; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Resolves a simulator name to its UUID by querying simctl. |
no outgoing calls
no test coverage detected