MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / installAndLaunchHost

Function installAndLaunchHost

scripts/experimental/swiftui-preview.mjs:223–231  ·  view source on GitHub ↗
(context, appPath, shouldInstall)

Source from the content-addressed store, hash-verified

221}
222
223function installAndLaunchHost(context, appPath, shouldInstall) {
224 if (!shouldInstall) {
225 return;
226 }
227 run("xcrun", ["simctl", "install", context.udid, appPath]);
228 run("xcrun", ["simctl", "launch", context.udid, context.bundleId], {
229 allowFailure: true,
230 });
231}
232
233async function reloadPreview(context, sourceFile, args, xcode) {
234 const started = Date.now();

Callers 1

mainFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected