When I run my swift 3.2 code with Xcode 9 beta 4 this is the error I get:
*** Terminating app due to uncaught exception \'com.firebase.core\', reason: \'[FIRAp
Go to build phases and add file in copy bundle resources. Thats it.
In my case something went wrong when i merged conflicts in project.pbxproj
GoogleService-Info.plist -> didn't have Target membership selected on the right pane and I couldn't select it because project.pbxproj was corrupted (even though build was successful)
I had to rollback project.pbxproj and after that GoogleService-Info.plist had Target membership selected.
Make sure project.pbxproj isn't corrupted after merging conflicts (it had something to do with attempted to initialize an object with an unknown UUID
)
For those of you working with Ionic, make sure to open your .xcworkspace file in Xcode first, then drag the GoogleService-info.plist file into the Resources folder.
Most tutorials online don't do a good job of explaining that portion for some reason.
Shout out to Shahzaib Maqbool because his comment helped me get this for my project.
Below setting can fix my compiler fail 1. Add to "Copy Files" 2. Not add to "Copy Bundle Resources"
1 - open "GoogleService-Info.plist" and change any or to and
2 - reopen the xamarin solution 3 - it should work now
It is possible that your configuration is not done properly
For Flutter
Installing your Firebase configuration file
You must add the file to the project using Xcode (adding manually via the filesystem won't link the file to the project). Using Xcode, open the project's ios/{projectName}.xcworkspace
file. Right-click Runner
from the left-hand side project navigation within Xcode and select "Add files", as seen below:
Select the GoogleService-Info.plist
file you downloaded, and ensure the "Copy items if needed" checkbox is enabled: