From 31c440c4e004406b801d5db0c05ec87fd910d9e9 Mon Sep 17 00:00:00 2001 From: malwatte Date: Thu, 7 Mar 2019 10:14:08 +0530 Subject: [PATCH] Override id with ios-CFBundleIdentifier Override id with ios-CFBundleIdentifier when both id and ios-CFBundleIdentifier is set in config.xml --- bin/templates/scripts/cordova/Api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js index 7059c18f9..20e8ef545 100644 --- a/bin/templates/scripts/cordova/Api.js +++ b/bin/templates/scripts/cordova/Api.js @@ -131,7 +131,7 @@ Api.createPlatform = function (destination, config, options, events) { var result; try { result = require('../../../lib/create') - .createProject(destination, config.packageName(), name, options) + .createProject(destination, config.getAttribute('ios-CFBundleIdentifier') || config.packageName(), name, options) .then(function () { // after platform is created we return Api instance based on new Api.js location // This is required to correctly resolve paths in the future api calls