From 43f73ab268c2c08ed31faf16989fff12ef84c46e Mon Sep 17 00:00:00 2001 From: josef Date: Mon, 31 Jul 2023 19:08:59 -0500 Subject: [PATCH] fix(amplify-frontend-ios): pass paths to command options as strings (#12596) --- packages/amplify-frontend-ios/lib/amplify-xcode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/amplify-frontend-ios/lib/amplify-xcode.js b/packages/amplify-frontend-ios/lib/amplify-xcode.js index aea5b59c353..6604ed70b08 100644 --- a/packages/amplify-frontend-ios/lib/amplify-xcode.js +++ b/packages/amplify-frontend-ios/lib/amplify-xcode.js @@ -33,7 +33,7 @@ const amplifyXcodePath = () => path.join(pathManager.getAmplifyPackageLibDirPath async function importConfig(params) { let command = `${amplifyXcodePath()} import-config`; if (params['path']) { - command += ` --path=${params['path']}`; + command += ` --path="${params['path']}"`; } await execa.command(command, { stdout: 'inherit' }); } @@ -46,7 +46,7 @@ async function importConfig(params) { async function importModels(params) { let command = `${amplifyXcodePath()} import-models`; if (params['path']) { - command += ` --path=${params['path']}`; + command += ` --path="${params['path']}"`; } await execa.command(command, { stdout: 'inherit' }); } @@ -59,7 +59,7 @@ async function importModels(params) { async function generateSchema(params) { let command = `${amplifyXcodePath()} generate-schema`; if (params['output-path']) { - command += ` --output-path=${params['output-path']}`; + command += ` --output-path="${params['output-path']}"`; } await execa.command(command, { stdout: 'inherit' }); }