We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e6ea84 commit 2fc5965Copy full SHA for 2fc5965
packages/cli-platform-ios/src/tools/getBuildConfigurationFromXcScheme.ts
@@ -13,10 +13,12 @@ export function getBuildConfigurationFromXcScheme(
13
sourceDir: string,
14
projectInfo: IosInfo | undefined,
15
): string {
16
+ // can not assume .xcodeproj exists.
17
+ // for more info see: https://github.com/react-native-community/cli/pull/2196
18
try {
19
const xcProject = fs
20
.readdirSync(sourceDir)
- .find((dir) => dir.includes('.xcodeproj'));
21
+ .find((dir) => dir.endsWith('.xcodeproj'));
22
23
if (xcProject) {
24
const xmlScheme = fs.readFileSync(
0 commit comments