Could not find a valid GoogleService-Info.plist in your project

后端 未结 21 897
面向向阳花
面向向阳花 2020-12-08 05:44

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

相关标签:
21条回答
  • 2020-12-08 06:36

    Go to build phases and add file in copy bundle resources. Thats it.

    0 讨论(0)
  • 2020-12-08 06:37

    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)

    0 讨论(0)
  • 2020-12-08 06:38

    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.

    0 讨论(0)
  • 2020-12-08 06:41

    Below setting can fix my compiler fail 1. Add to "Copy Files" 2. Not add to "Copy Bundle Resources"

    0 讨论(0)
  • 2020-12-08 06:43

    1 - open "GoogleService-Info.plist" and change any or to and

    2 - reopen the xamarin solution 3 - it should work now

    0 讨论(0)
  • 2020-12-08 06:44

    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:

    0 讨论(0)
提交回复
热议问题