From c36867e6422246119a7f3a76566771fe52bfa6db Mon Sep 17 00:00:00 2001 From: Marc Bender <79178770+mbender74@users.noreply.github.com> Date: Wed, 11 May 2022 16:45:09 +0200 Subject: [PATCH] fix(build): fixes crashing macos app because of permissions (#13428) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: fixes launchen macos app because of macos permissions * Revert "Merge remote-tracking branch 'origin/master' into fixes" This reverts commit 0da0759581762aff9b4e83c3d9bc9591f61d0c12. * fix(build): fixes crashing macos app because of permissions * fix: fix linting * fix: fix more linting issues Co-authored-by: Hans Knöchel --- 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 44eac999326..4e9e9041fbd 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) => {