How to merge GoogleAnalytics and Firebase/Crashlytics GoogleService-info.plist?
In an iOS project, I have been using GoogleAnalytics and Fabric. Now I am trying to migrate Fabric to Firebase/Crashlytics. GoogleAnalytics has been using a GoogleService-info.plist and also Firebase requires a GoogleService-info.plist to support. Although I am using same account. Both GOOGLE_APP_ID is showing different in both GoogleService-info.plist. How can I use both version of GoogleAnalitics and Firebase/Crashlytics?
Finally it worked,
We can remove the old GoogleAnalytics GoogleService-info.plist and dynamically set GA configurations like below (more detail),
Then for Firebase/Analytics GoogleService-info.plist, we can put in appropriate dev/prod folder and copy appropriate one in Build Phase -> Run Script based on configurations. Like,