Skip to content

Commit

Permalink
fix(build): fixes crashing macos app because of permissions (#13428)
Browse files Browse the repository at this point in the history
* fix: fixes launchen macos app because of macos permissions

* Revert "Merge remote-tracking branch 'origin/master' into fixes"

This reverts commit 0da0759.

* fix(build): fixes crashing macos app because of permissions

* fix: fix linting

* fix: fix more linting issues

Co-authored-by: Hans Knöchel <hansemannn@users.noreply.github.com>
  • Loading branch information
mbender74 and hansemannn committed May 11, 2022
1 parent 27cbe93 commit c36867e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iphone/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c36867e

Please sign in to comment.