Skip to content

Commit

Permalink
fix(react-native): xcodeProject.path may not always be present (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Oct 24, 2024
1 parent 759c85a commit c1892e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/local-cli/runMacOS/runMacOS.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @typedef {{
* name: string;
* path: string;
* path?: string;
* isWorkspace: boolean;
* }} XcodeProject
*
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit c1892e8

Please sign in to comment.