Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

How to programmatically replace GoogleService-Info.plist file in iOS project

$
0
0

Hi guys, I have an ionic/angular/firebase/capacitor project. I use two distinct firebase projects for it, one for development and one for production. My problem: I am trying to come up with a script or any other programmatic way to replace GoogleService-Info.plist in such a way that the iOS app works after ionic run or ionic build. To explain myself, it is easy to write a script that simply replaces the file in the iOS folder but that does not seem to work. The replacement works only if I manually drop the GoogleService-Info.plist into Xcode and Xcode does its thing. I am looking for a way to avoid having to do this manually every time I switch between the development and production environment upon building the iOS app.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>