File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/host/src/node/cli Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,17 @@ export async function findXcodeWorkspace(fromPath: string) {
5353 return path . join ( fromPath , workspace ) ;
5454 }
5555
56- // Check if the directory contain an ios directory and call recursively from that
56+ // Check if the directory contains an " ios" or a "macos" directory and call recursively from that
5757 const iosDirectory = path . join ( fromPath , "ios" ) ;
5858 if ( fs . existsSync ( iosDirectory ) ) {
5959 return findXcodeWorkspace ( iosDirectory ) ;
6060 }
6161
62+ const macosDirectory = path . join ( fromPath , "macos" ) ;
63+ if ( fs . existsSync ( macosDirectory ) ) {
64+ return findXcodeWorkspace ( macosDirectory ) ;
65+ }
66+
6267 // TODO: Consider continuing searching in parent directories
6368 throw new Error ( `No Xcode workspace found in '${ fromPath } '` ) ;
6469}
You can’t perform that action at this time.
0 commit comments