Use different GoogleService-Info.plist for different build schemes in iOS
July 21, 2022
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.plist
to 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 sureCopy items if needed
andCreate groups
are selected, check only the corresponding target in the list of targets, and pressAdd
That’s it. Now you should have something similar to this structure
When you build a target, the correct GoogleService-Info.plist
will be used.
Reference or copy from : https://stackoverflow.com/questions/37615405/use-different-googleservice-info-plist-for-different-build-schemes