Skip to content

Commit eb225ee

Browse files
tido64thymikee
authored andcommitted
fix(ios): fix Xcode defaulting to 'Release' (#1957)
`getBuildConfigurationFromXcScheme` currently assumes where the `.xcodeproj` lives (it could be anywhere). The proper fix is to get the path from `.xcworkspace`, but that's a much more intrusive change. The least we can do for now is to fall back to `Debug`.
1 parent c878c39 commit eb225ee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/cli-platform-ios/src/tools/getConfigurationScheme.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ export function getConfigurationScheme(
1111
) {
1212
if (scheme && mode) {
1313
return mode;
14-
} else if (scheme) {
15-
return getBuildConfigurationFromXcScheme(scheme, mode, sourceDir);
1614
}
1715

18-
return mode || 'Debug';
16+
const configuration = mode || 'Debug';
17+
if (scheme) {
18+
return getBuildConfigurationFromXcScheme(scheme, configuration, sourceDir);
19+
}
20+
21+
return configuration;
1922
}

0 commit comments

Comments
 (0)