Skip to content

Commit 95834df

Browse files
authored
fix(react-native): xcodeProject.path may not always be present (#2237)
1 parent 31d99df commit 95834df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/local-cli/runMacOS/runMacOS.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @typedef {{
2222
* name: string;
23-
* path: string;
23+
* path?: string;
2424
* isWorkspace: boolean;
2525
* }} XcodeProject
2626
*
@@ -162,7 +162,7 @@ function buildProject(sourceDir, xcodeProject, scheme, args) {
162162
return new Promise((resolve, reject) => {
163163
const xcodebuildArgs = [
164164
xcodeProject.isWorkspace ? '-workspace' : '-project',
165-
path.join(sourceDir, xcodeProject.path, xcodeProject.name),
165+
path.join(sourceDir, xcodeProject.path || '.', xcodeProject.name),
166166
'-configuration',
167167
args.mode,
168168
'-scheme',

0 commit comments

Comments
 (0)