How to integrate Fireboase cocoaPods into my own fast structure?

I want to create an iOS swift framework (e.g. XYZ), which for users must enter firebase with a custom access token. I finished my login method and got an access token in XYZ. Now I want to integrate Firebase into XYZ in order to transfer the Firebase access token. So I install Firebase in XYZ using cocoaPods. and write code and build an XYZ structure. Everything seems beautiful.

How do I create a quick ABC project and import an XYZ structure. Then I got the error message "The required Firebase module is missing on the line I import XYZ.

If I also install Firebase in ABC with cocoaPods. It will run successfully, but there will be many errors in that "Class FirebaseXXX is implemented in both ABC and XYZ. One of the two will be used. Which one is undefined." And crash soon.

Can someone please help me figure out how to solve this problem?

+8
ios frameworks swift cocoapods firebase
source share
1 answer

Have you tried the swap file, for example:

platform :ios, '9.0' target 'ABC' do use_frameworks! workspace 'ABC' project 'ABC' pod 'Firebase' # ... end target 'XYZ' do use_frameworks! workspace 'ABC' project 'XYZ' # pods for the framework pod 'Firebase' # ... end 

?

0
source share

All Articles