2017-07-07 90 views
0

我使用Firebase Unity插件爲Unity中的iOS構建應用程序,並獲取一個錯誤消息,指出在我的項目中找不到GoogleServices-info.plist,因此無法爲iOS構建。根據Firebase文檔,您應該從Dasboard下載plist文件,但是當您到達那裏時,您會發現它們只爲您提供iOS項目的.json文件下載。如何從google-services.json獲取GoogleServices-info.plist?

我錯過了什麼?我如何獲得.plist文件?它應該生成嗎?

+0

嘗試按照此文檔:https://support.google.com/firebase/answer/7015592 –

回答

2

在firebase上,如果爲您的項目創建iOS應用程序,它提供下載的文件實際上是.plist文件。

你的項目的概述它顯示了你的應用程序,你應該有Android和iOS的一個有: enter image description here

然後你上的選項單擊您的iOS應用的「設置」 enter image description here 點擊

然後從這裏: enter image description here 點擊 「GoogleService-Info.plist中」

您可以檢查的項目有一個iOS應用?

+0

謝謝 - 就是這樣。事實證明,有兩條非常相似的路徑,一條導致一個.json文件(整體項目設置),另一條(特定的應用程序設置)導致.plist文件。還有一個額外步驟,您必須將.plist文件實際添加到Unity項目中。我把它放在一個插件/ iOS文件夾中。 – screenglow

0

按照以下步驟

▪ Go to dashboard select your app 
▪ Go Settings > general > your apps 
▪ Select iOS app 
▪ Click on Download the latest config file 

你會得到Info.plist文件

enter image description here