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

后端 未结 21 1025
面向向阳花
面向向阳花 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:23

    We must make sure that full path is correct in Xcode. It would be better to add it from the start. If you already did, jump to step 5.

    1. Quit Xcode.
    2. Make sure that file name is correct, "GoogleService-Info.plist".
    3. Add .plist file to project folder. Same level with Podfile, .xcworkspace, etc.
    4. Open Xcode, identify .plist file on Project Navigator. If it's not there, right-click and click Add new file to "[Project Name]". Make sure to click project name below Add to targets option.
    5. On Project Navigator, click on GoogleService-Info.plist. Select File Inspector from right navigator. Ensure that Full Path is correct. If not, click on folder icon and select the .plist file inside the project file.
    6. Build. If still doesn't work, Quit Xcode and Build again.

提交回复
热议问题