From f52f3c68125a20b4a9ee666195262866360a5184 Mon Sep 17 00:00:00 2001 From: Maxim Belov Date: Fri, 16 Feb 2024 10:36:43 +0200 Subject: [PATCH] remove default build dir overrides --- .../@ionic/cli/src/lib/integrations/cordova/project.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@ionic/cli/src/lib/integrations/cordova/project.ts b/packages/@ionic/cli/src/lib/integrations/cordova/project.ts index 7ffa6fb98..45bf938d9 100644 --- a/packages/@ionic/cli/src/lib/integrations/cordova/project.ts +++ b/packages/@ionic/cli/src/lib/integrations/cordova/project.ts @@ -11,8 +11,7 @@ import { FatalException } from '../../errors'; const debug = Debug('ionic:lib:cordova:project'); const CORDOVA_ANDROID_PACKAGE_PATH = 'platforms/android/app/build/outputs/apk/'; -const CORDOVA_IOS_SIMULATOR_PACKAGE_PATH = 'platforms/ios/build/emulator'; -const CORDOVA_IOS_DEVICE_PACKAGE_PATH = 'platforms/ios/build/device'; +const CORDOVA_IOS_PACKAGE_PATH = 'platforms/ios/build'; export async function getPlatforms(projectDir: string): Promise { const platformsDir = path.resolve(projectDir, 'platforms'); @@ -74,11 +73,12 @@ export async function getPackagePath(root: string, appName: string, platform: st if (platform === 'android') { return getAndroidPackageFilePath(root, { emulator, release }); } else if (platform === 'ios') { + const configuration = release ? 'Release' : 'Debug'; if (emulator) { - return path.join(CORDOVA_IOS_SIMULATOR_PACKAGE_PATH, `${appName}.app`); + return path.join(CORDOVA_IOS_PACKAGE_PATH, `${configuration}-iphonesimulator`, `${appName}.app`); } - return path.join(CORDOVA_IOS_DEVICE_PACKAGE_PATH, `${appName}.ipa`); + return path.join(CORDOVA_IOS_PACKAGE_PATH, `${configuration}-iphoneos` , `${appName}.ipa`); } throw new FatalException(`Unknown package path for ${input(appName)} on ${input(platform)}.`);