Skip to content

Commit

Permalink
fix(cli): Find the Info.plist when using scheme (#5914)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Sep 15, 2022
1 parent 020ed8e commit f7029ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ export async function logCordovaManualSteps(

async function logiOSPlist(configElement: any, config: Config, plugin: Plugin) {
let plistPath = resolve(config.ios.nativeTargetDirAbs, 'Info.plist');
if (config.app.extConfig.ios?.scheme) {
plistPath = resolve(
config.ios.nativeProjectDirAbs,
`${config.app.extConfig.ios?.scheme}-Info.plist`,
);
}
if (!(await pathExists(plistPath))) {
plistPath = resolve(
config.ios.nativeTargetDirAbs,
Expand Down

0 comments on commit f7029ac

Please # to comment.