From e96a6d50b78c84c69e592436a977512e2ea78482 Mon Sep 17 00:00:00 2001 From: Sergi Mansilla Date: Thu, 17 Dec 2020 14:35:23 +0100 Subject: [PATCH] Enclose the app path in quotes, so that the `open` command doesn't split it if it contains spaces --- local-cli/runMacOS/runMacOS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/runMacOS/runMacOS.js b/local-cli/runMacOS/runMacOS.js index 88504f6bedfa0b..95b72de73c8e53 100644 --- a/local-cli/runMacOS/runMacOS.js +++ b/local-cli/runMacOS/runMacOS.js @@ -87,7 +87,7 @@ async function run(xcodeProject, scheme, args) { ); child_process.exec( - 'open -b ' + bundleID + ' -a ' + appPath, + 'open -b ' + bundleID + ' -a ' + '"' + appPath + '"', (error, stdout, stderr) => { if (error) { logger.error('Failed to launch the app', stderr);