diff --git a/packages/react-native/local-cli/runMacOS/runMacOS.js b/packages/react-native/local-cli/runMacOS/runMacOS.js index 2b3088108650b6..889380bae4ee47 100644 --- a/packages/react-native/local-cli/runMacOS/runMacOS.js +++ b/packages/react-native/local-cli/runMacOS/runMacOS.js @@ -20,7 +20,7 @@ * * @typedef {{ * name: string; - * path: string; + * path?: string; * isWorkspace: boolean; * }} XcodeProject * @@ -162,7 +162,7 @@ function buildProject(sourceDir, xcodeProject, scheme, args) { return new Promise((resolve, reject) => { const xcodebuildArgs = [ xcodeProject.isWorkspace ? '-workspace' : '-project', - path.join(sourceDir, xcodeProject.path, xcodeProject.name), + path.join(sourceDir, xcodeProject.path || '.', xcodeProject.name), '-configuration', args.mode, '-scheme',