title: Firebase with multiple targets and multiple environments
body: <p>I have an iOS app with 2 different configurations (prod and dev) and with 12 targets. My question is: how do you manage <code>GoogleService-Info.plist</code> 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).</p>
  
  <p>The only solution I came up with is to keep one <code>GoogleService-Info.plist</code> file in the project and to add a run script and inject values for each target. Any thought on this?</p>
  
  <p>There is a similar question but what's different here is that I have not just multiple environments but multiple targets as well.</p>
  
  <p><strong>UPDATE:</strong> If anybody needs the answer how I solved it: I added empty <code>GoogleService-Info.plist</code> 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!</p>