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

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

    If you have multiple environments (Production, Develop, Staging), you will need a different Google.plist for each.

    They all have to have the same name.

    To get around this, create folders for each of these files (one for each environment) and place them inside their corresponding folders.

    When you drag the files from the Finder to Xcode, make sure to select the proper environment for each under Target Membership

    That will do the trick and allow you to build environments separately. Especially if each environment has a different Bundle ID.

提交回复
热议问题