I am having trouble building my iOS app using Ionic Appflow. I am successfully able to build my Andorid app, but my iOS app keeps failing with the below error:
Terminating app due to uncaught exception 'com.firebase.core', reason: '`FirebaseApp.configure()` could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.'
The build is successful, but when I try to run it on an iOS simulator, the app crashes with the above error. Please note that our team does not have a mac and is solely relying on Appflow to build our iOS app.
On iOS copying files to the project folder doesn’t actually add those files to the project, you have to add them to the Xcode project.
I think you can use trapeze’s project API to add files with addFile method.
Or there are other npm libraries for editing Xcode project files too.
The issue is that the GoogleService-Info.plist file needs to be added in the project using XCode. It cannot be copied into the project through the standard file explorer.
unfortunately manual Xcode/Android Studio use is the only official way due to limitations of automated/programatic editing of iOS/Android projects. The consequence is serious antipattern of committing full mobile apps to the repo.
Use of trapeze project-api seems the right way to proceed (currently I use node-xcode package in a similar way) to add/update the GoogleService-Info.plist