(context, appPath, shouldInstall)
| 221 | } |
| 222 | |
| 223 | function 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 | |
| 233 | async function reloadPreview(context, sourceFile, args, xcode) { |
| 234 | const started = Date.now(); |