Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Firebase SDK as a Pod dependency?

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'
like image 993
Dirty Henry Avatar asked Jan 19 '26 18:01

Dirty Henry


1 Answers

A little late but, in your .podspec add s.static_framework = true. That'll let you use Firebase as a pod dependency!

like image 69
Alex Mason Avatar answered Jan 21 '26 08:01

Alex Mason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!