I am creating a framework which will do some analytic related stuff. I am wondering if I use firebase
as my database how to include it in the framework.
On the same note, will having firebase
in my framework cause issues if the app using my framework is also using firebase
?
I've read that frameworks should not include other frameworks, but I'm clueless how other frameworks are uploading things to their databases then.
答案 0 :(得分:1)
I encountered a similar issue while developing a Cocoapod-based framework that involved another dependency.
s.dependency 'Alamofire'
Simply add this line to the podspec
and it will include the other framework as well.
I've read that frameworks should not include other frameworks, but I'm clueless how other frameworks are uploading things to their databases then.
Yeah, that's the general approach. With Cocoapods, your framework won't include the dependency, it will simply install it as another framework. If it is already installed then it won't do anything.