From 44c3b7612f549270c03e04cc837a6656b68cc537 Mon Sep 17 00:00:00 2001 From: janoshrubos Date: Mon, 26 Oct 2020 08:42:18 +0100 Subject: [PATCH 1/3] fix: CFBundleName cannot be changed --- lib/services/ios-project-service.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index 9ac2b56048..18d5524a3f 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -145,8 +145,14 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ !!buildOptions.buildForDevice || !!buildOptions.buildForAppStore; if (forDevice) { + const ipaFileName = _.find( + this.$fs.readDirectory( + this._platformData.getBuildOutputPath(buildOptions) + ), + (directory) => path.extname(directory) === ".ipa" + ); return { - packageNames: [`${projectData.projectName}.ipa`], + packageNames: [ipaFileName], }; } From cfdeef4b5252aa42cc29f454f96b8cfba0e9bc74 Mon Sep 17 00:00:00 2001 From: janoshrubos Date: Mon, 26 Oct 2020 10:20:05 +0100 Subject: [PATCH 2/3] fix: add default ipa --- lib/services/ios-project-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index 18d5524a3f..099f2059a8 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -149,10 +149,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ this.$fs.readDirectory( this._platformData.getBuildOutputPath(buildOptions) ), - (directory) => path.extname(directory) === ".ipa" + (entry) => path.extname(entry) === ".ipa" ); return { - packageNames: [ipaFileName], + packageNames: [ipaFileName || `${projectData.projectName}.ipa`], }; } From 26370b777f754a73e150464674c4c0cb3def6903 Mon Sep 17 00:00:00 2001 From: janoshrubos Date: Mon, 26 Oct 2020 11:16:09 +0100 Subject: [PATCH 3/3] fix: add default ipa as a fallback --- lib/services/ios-project-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index 099f2059a8..333451a777 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -152,7 +152,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ (entry) => path.extname(entry) === ".ipa" ); return { - packageNames: [ipaFileName || `${projectData.projectName}.ipa`], + packageNames: [ipaFileName, `${projectData.projectName}.ipa`], }; }