I need to use two different GoogleService-info.plist for working with dev and prod builds, currently I'm separating dev and prod by just changing "build configuration" in edit scheme, but now I need to have two different .plist files for dev and prod for working with google analytics, pushwoosh etc,
Asked
Active
Viewed 8,720 times
9
-
[Configure multiple projects](https://firebase.google.com/docs/projects/multiprojects) – Parag Bafna May 18 '20 at 04:28
1 Answers
16
For this case you need use different Targets with diff bundle id in project for Dev and Prod.
After that you will can link GoogleService-info.plist
for this targets. And also I recommend create different folders in project directory
Look at pictures. The first you create targets Prod and Dev
After create diff folders in project dict let's call them GoogleProd and GoogleDev and copy your .plist
file to diff folders and drag to project. First file you need link with TestProd target
And the second file link with TestDev target
The final project directory will look like

iSashok
- 2,326
- 13
- 21
-
what do you mean by diff target ?? actually i'm new to xcode , there are 3 xcode provided target in my project like project-test and-uitest , so are you suggesting any of them ?? – Harshad Madaye Sep 08 '16 at 09:47
-
but my project is almost done more than 70 % , so now do i have to duplicate my current target ?? – Harshad Madaye Sep 22 '16 at 10:37
-
1
-
you are awesome , sorry for late response , your way to organise builds is working fabulously for me. – Harshad Madaye Dec 21 '16 at 06:31
-
2This needs to be handled by using different schemes on the same target, not two different targets. – musical_coder Jul 24 '19 at 17:25
-