I have an iOS app with 2 different configurations (prod and dev) and with 12 targets. My question is: how do you manage GoogleService-Info.plist
file since each target needs one with a different configuration for that target (different bundle ids) and each target needs two different configurations depending on the environment (different environments means different databases: prod and dev).
The only solution I came up with is to keep one GoogleService-Info.plist
file in the project and to add a run script and inject values for each target. Any thought on this?
There is a similar question but what's different here is that I have not just multiple environments but multiple targets as well.
UPDATE: If anybody needs the answer how I solved it: I added empty GoogleService-Info.plist
file to the project and assigned it to all the targets. On each target, I added run script to inject appropriate values using PlistBuddy. That's how I deal with multiple targets. For multiple environments, I check configuration parameter in my run scripts and depending on that I inject different values. Cheers!