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

Function clearIosSimulatorRuntimeHints

src/daemon/runtime-hints.ts:199–222  ·  view source on GitHub ↗
(device: DeviceInfo, bundleId: string)

Source from the content-addressed store, hash-verified

197}
198
199async function clearIosSimulatorRuntimeHints(device: DeviceInfo, bundleId: string): Promise<void> {
200 await runXcrun(
201 buildSimctlArgsForDevice(device, [
202 'spawn',
203 device.id,
204 'defaults',
205 'delete',
206 bundleId,
207 IOS_JS_LOCATION_KEY,
208 ]),
209 { allowFailure: true },
210 );
211 await runXcrun(
212 buildSimctlArgsForDevice(device, [
213 'spawn',
214 device.id,
215 'defaults',
216 'delete',
217 bundleId,
218 IOS_PACKAGER_SCHEME_KEY,
219 ]),
220 { allowFailure: true },
221 );
222}
223
224function normalizeAndroidPrefsXml(xml: string): string {
225 const trimmed = xml.trim();

Callers 1

clearRuntimeHintsFromAppFunction · 0.85

Calls 2

runXcrunFunction · 0.90
buildSimctlArgsForDeviceFunction · 0.90

Tested by

no test coverage detected