Our application is based on Ionic 4 (with Capacitor & Angular) and shipped with different styles, a style per customer. Every customer has his dedicated app on the store (different bundle ids, icons, splashes...).
During the Angular build, a property file is generated containing the bundle id, the assets name, ... I use a preprocessor for the Plist file that takes care of the bundle version and build number, but I cannot customize the id and the assets name. Indeed, either Xcode complains that there is no certificate for my application, or the app is archived, but the bundle id is empty.
Is there a way with Xcode 10/11 to achieve this? ideally it should work on Ionic AppFlow and customized by a script reading a property file.
I know that appflow uses Fastlane and has a plugin to customize this id, but there is no documentation explaining if we can use our own Fastlane configuration on AppFlow?
First attempt, injecting the bundle id via a pre-processor. The file Info.plist contains:
<key>CFBundleIdentifier</key>
<string>EMA_APP_ID</string>
The preprocessor contains:
echo "#define EMA_APP_ID ${APP_ID}" >> $PRE_PROCESSING_FILE
The error looks like: https://photos.app.goo.gl/Qn9iXWeUAyWAegSM7
Thank you, Sébastien.