Firebase- Could not locate configuration file: 'GoogleService-Info.plist'

前端 未结 4 1068
天命终不由人
天命终不由人 2021-01-19 17:10

I have downloaded it already and added it to my Xcode Project I did copy items if needed as well .. I do not understand why I am still getting this error. I have FIRApp.conf

相关标签:
4条回答
  • 2021-01-19 17:13
    1. Add to the project
    2. Click on it:

    1. On the right sidebar from Xcode, mark the Target Membership option:

    0 讨论(0)
  • 2021-01-19 17:21

    I tried so many copy paste methods even creating/placing plist file in the Resource folder and nothing worked :(

    sometimes, only using original plist file was best indicator of working but this is the best solution that worked 100% every time I use Xcode (8 - 9)/swift and Firebase together:

    1. Go to your project settings
    2. Press on Build Phases
    3. Press on Copy Bundle Resources (to expand)
    4. Drag the your GoogleServices-Info.plist into this folder
    5. now Run the project and it should work :D
    0 讨论(0)
  • 2021-01-19 17:26

    Solution 1

    Make sure your google service plist called GoogleServices-Info.plist. If it's not then it won't work.

    Solution 2

    If it is still not working then just create Resource Folder in Xcode and then copy the GoogleServices-Info.plist inside the Resource folder. Now Run your project. I hope this helps you.

    0 讨论(0)
  • 2021-01-19 17:35

    I was making FIRApp.configure() from two different file/places, due to which app was crashing.

    You need to call only one time.

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