MCPcopy Index your code
hub / github.com/callstack/agent-device / applyIosSimulatorRuntimeHints

Function applyIosSimulatorRuntimeHints

src/daemon/runtime-hints.ts:168–197  ·  view source on GitHub ↗
(
  device: DeviceInfo,
  bundleId: string,
  transport: ResolvedRuntimeTransport,
)

Source from the content-addressed store, hash-verified

166}
167
168async 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
199async function clearIosSimulatorRuntimeHints(device: DeviceInfo, bundleId: string): Promise<void> {
200 await runXcrun(

Callers 1

applyRuntimeHintsToAppFunction · 0.85

Calls 2

runXcrunFunction · 0.90
buildSimctlArgsForDeviceFunction · 0.90

Tested by

no test coverage detected