Skip to content

Commit ca32dc2

Browse files
authored
fix: CFBundleName cannot be changed (#5427)
* fix: CFBundleName cannot be changed * fix: add default ipa * fix: add default ipa as a fallback
1 parent b0d4298 commit ca32dc2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/ios-project-service.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,14 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
145145
!!buildOptions.buildForDevice ||
146146
!!buildOptions.buildForAppStore;
147147
if (forDevice) {
148+
const ipaFileName = _.find(
149+
this.$fs.readDirectory(
150+
this._platformData.getBuildOutputPath(buildOptions)
151+
),
152+
(entry) => path.extname(entry) === ".ipa"
153+
);
148154
return {
149-
packageNames: [`${projectData.projectName}.ipa`],
155+
packageNames: [ipaFileName, `${projectData.projectName}.ipa`],
150156
};
151157
}
152158

0 commit comments

Comments
 (0)