Closed skurgansky-sugarcrm closed 3 months ago
If you want to make different builds of the same Cordova project with different identifiers (such as for QA, Staging, and Production environments), I suggest looking at seymour which will fill in config.xml values based on environment variables for use with CI systems.
Cordova itself only support building with the bundle identifier declared in config.xml.
Closing ticket as the above comment is sufficient.
I have an issue with 6.2.0 version. prepare.js checks if PRODUCT_BUNDLE_IDENTIFIER and widget id in config.xml are different. If they are prepare.js will set PRODUCT_BUNDLE_IDENTIFIER from config.xml in project file. I have PRODUCT_BUNDLE_IDENTIFIER=${APPLICATION_BUNDLE_ID} in project file for purpose and i can't delete it. APPLICATION_BUNDLE_ID is set via some xcconfig files for prod and dev builds. I also have
<key>CFBundleIdentifier</key<string>${APPLICATION_BUNDLE_ID}</string>
in plist but it is overridden via project file after prepare.js replacesPRODUCT_BUNDLE_IDENTIFIER=${APPLICATION_BUNDLE_ID}
withPRODUCT_BUNDLE_IDENTIFIER=com.acme.crm
.... Can i bypass it with some configuration settings?