2017-08-02 60 views
1

我試圖火力地堡融入我的OSX的應用程序與該吊艙集成FirebaseCommunity吊艙和MacOS

use_frameworks! 

target 'MyAppTarget' do 
    pod 'FirebaseCommunity', :git => 'https://github.com/firebase/firebase-ios-sdk.git' 
end 

,但我得到完全沒有:「沒有這樣的模塊‘火力地堡’」當

import Firebase 

我已經嘗試了各種各樣的清潔,不同的Podfile變種,甚至所有組合swift/objc osx/ios,但什麼都沒有。其他豆莢的工作。

我能找什麼?

回答

0

FirebaseCommunity尚未(尚未)Firebase。

FirebaseCommunity確實包含Firebase組件的子集的來源,但它尚未通過CocoaPods與Firebase的其餘部分進行集成。

利用現有的火力地堡子集在FirebaseCommunity CocoaPod和/或你的目標OS/X,請仔細閱讀通過在源README和訪問:

import FirebaseCommunity 

此外,您還需要在Podfile至少指定一個subspec像:

pod 'FirebaseCommunity/Database' 

順便說一句,我們打算合併火力地堡和FirebaseCommunity時的CocoaPods 1.4版本,其對static library framework CocoaPods支持。

+0

非常感謝!它開始工作,在Podfile中添加/ Core組件像這個版本'FirebaseCommunity/Core',::git =>'https://github.com/firebase/firebase-ios-sdk.git' 但它看起來並不明顯,它呢?也許值得在README.md中加入? – user1261347

+0

@ user1261347好主意!文檔現在已更新。 https://github.com/firebase/firebase-ios-sdk/pull/174 –

0

嘗試將目標'MyAppTarget'更改爲您的實際項目名稱。確保您已經正確安裝了Firebase窗格。