( device: DeviceInfo, bundleId: string, transport: ResolvedRuntimeTransport, )
| 166 | } |
| 167 | |
| 168 | async function applyIosSimulatorRuntimeHints( |
| 169 | device: DeviceInfo, |
| 170 | bundleId: string, |
| 171 | transport: ResolvedRuntimeTransport, |
| 172 | ): Promise<void> { |
| 173 | await runXcrun( |
| 174 | buildSimctlArgsForDevice(device, [ |
| 175 | 'spawn', |
| 176 | device.id, |
| 177 | 'defaults', |
| 178 | 'write', |
| 179 | bundleId, |
| 180 | IOS_JS_LOCATION_KEY, |
| 181 | '-string', |
| 182 | `${transport.host}:${transport.port}`, |
| 183 | ]), |
| 184 | ); |
| 185 | await runXcrun( |
| 186 | buildSimctlArgsForDevice(device, [ |
| 187 | 'spawn', |
| 188 | device.id, |
| 189 | 'defaults', |
| 190 | 'write', |
| 191 | bundleId, |
| 192 | IOS_PACKAGER_SCHEME_KEY, |
| 193 | '-string', |
| 194 | transport.scheme, |
| 195 | ]), |
| 196 | ); |
| 197 | } |
| 198 | |
| 199 | async function clearIosSimulatorRuntimeHints(device: DeviceInfo, bundleId: string): Promise<void> { |
| 200 | await runXcrun( |
no test coverage detected