From 0ca2e5654784027d840d90fbbc724400476a2e5b Mon Sep 17 00:00:00 2001 From: Marc Bender <79178770+mbender74@users.noreply.github.com> Date: Mon, 2 May 2022 18:33:47 +0200 Subject: [PATCH] fix: fixes launchen macos app because of macos permissions --- iphone/cli/hooks/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/cli/hooks/run.js b/iphone/cli/hooks/run.js index 44eac999326d..376388f35a11 100644 --- a/iphone/cli/hooks/run.js +++ b/iphone/cli/hooks/run.js @@ -104,7 +104,7 @@ exports.init = function (logger, config, cli) { // Open the app logger.info(__('Launching Mac application')); - const child = spawn(`${builder.iosBuildDir}/${builder.tiapp.name}.app/Contents/MacOS/${builder.tiapp.name}`); + const child = spawn('open', [ '-a', '${builder.iosBuildDir}/${builder.tiapp.name}.app', '-W'] ); child.on('error', err => logger.error(err)); // "Forward" the exit code of the app to this process (when the app exits) child.on('exit', (code, _signal) => {