Skip to content

Commit f7029ac

Browse files
authored
fix(cli): Find the Info.plist when using scheme (#5914)
1 parent 020ed8e commit f7029ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/src/cordova.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,12 @@ export async function logCordovaManualSteps(
353353

354354
async function logiOSPlist(configElement: any, config: Config, plugin: Plugin) {
355355
let plistPath = resolve(config.ios.nativeTargetDirAbs, 'Info.plist');
356+
if (config.app.extConfig.ios?.scheme) {
357+
plistPath = resolve(
358+
config.ios.nativeProjectDirAbs,
359+
`${config.app.extConfig.ios?.scheme}-Info.plist`,
360+
);
361+
}
356362
if (!(await pathExists(plistPath))) {
357363
plistPath = resolve(
358364
config.ios.nativeTargetDirAbs,

0 commit comments

Comments
 (0)