如何将Firebase SDK用作Pod依赖项? [英] How to use Firebase SDK as a Pod dependency?
问题描述
既然 iOS Firebase SDK是开源的,我想用Firebase作为依赖来构建一个窗格。为此,我使用以下命令创建了一个新的pod模板。
我的问题是,我可以从示例项目中导入FirebaseDev,但是我无法从我的开发窗格中导入FirebaseDev。我知道这是SDK开源之前的一个问题,但我希望现在能够解决这个问题,但我需要帮助确定问题所在。任何人都可以帮忙吗?
$ b
.podspec
:
< FirebaseDev / Core'
s.dependency'FirebaseDev / Auth'
s.dependency'FirebaseDev'
s.dependency'FirebaseDev / Core' / Database'
示例/ Podfile
:
pod'FirebaseDev',:git => 'https://github.com/firebase/firebase-ios-sdk'
pod'FirebaseDev / Core',:git => 'https://github.com/firebase/firebase-ios-sdk'
pod'FirebaseDev / Auth',::git => 'https://github.com/firebase/firebase-ios-sdk'
pod'FirebaseDev / Database',::git => 'https://github.com/firebase/firebase-ios-sdk'
遵循链接的GitHub问题的一些建议,我创建了一个forkbase-ios-sdk,其中我只删除了模块映射文件,我终于可以创建一个使用Firebase作为依赖的Pod! Youhou !!!
我需要知道这是否有一些令人讨厌的副作用。
更新:相应的拉动请求已合并。
Now that the iOS Firebase SDK is open-source, I'd like to build a pod using Firebase as a dependency. To do so, I create a new pod template with the following.
My issue is that I can import FirebaseDev from the example project, but I cannot from my development pod. I knew this was an issue before the SDK got open-source, but I hope to be able to fix this issue now but I need help identifying where the problem lies. Anyone can help on this?
.podspec
:
s.dependency 'FirebaseDev'
s.dependency 'FirebaseDev/Core'
s.dependency 'FirebaseDev/Auth'
s.dependency 'FirebaseDev/Database'
Example/Podfile
:
pod 'FirebaseDev', :git => 'https://github.com/firebase/firebase-ios-sdk'
pod 'FirebaseDev/Core', :git => 'https://github.com/firebase/firebase-ios-sdk'
pod 'FirebaseDev/Auth', :git => 'https://github.com/firebase/firebase-ios-sdk'
pod 'FirebaseDev/Database', :git => 'https://github.com/firebase/firebase-ios-sdk'
Following some advice on the linked GitHub issue, I created a fork of firebase-ios-sdk in which I only removed the modulemap file and I was finally able to create a Pod using Firebase as a dependency! Youhou!!!
I need to find out if this has some nasty side-effects now.
Update: the corresponding pull request has been merged.
这篇关于如何将Firebase SDK用作Pod依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!