Use different GoogleService-Info.plist for different build schemes in iOS
For each of your targets, e.g. dev, stg, prod:
- Download the corresponding
GoogleService-Info.plistto a separate folder named after your target
- In Xcode, right-click your app folder and choose
Add files to "your app"
- Select the folder containing the target’s
GoogleService-Info.plist, make sure
Copy items if neededand
Create groupsare selected, check only the corresponding target in the list of targets, and press
That’s it. Now you should have something similar to this structure
When you build a target, the correct
GoogleService-Info.plistwill be used.