Home > Mobile >  Adding Firebase package to Xcode with SPM results in an increase from 200 to 1800 build files
Adding Firebase package to Xcode with SPM results in an increase from 200 to 1800 build files

Time:01-11

I followed this official guide to adding Firebase to my project:
enter image description here

And my build files increased from ~90-150 to 1800(!):

enter image description here
(which now takes about 10 times longer for any preview or simulator to run)

I have used the exact same Firebase dependencies in AndroidStudio for my Android version and there it never destroyed my build like that.

This looks like a bug to me. Is this how it normally goes? Why are there so many third-party packages contained in there?

CodePudding user response:

This is expected behavior. The packages shown are Firebase or Firebase dependencies except for SwiftProtobuf. A significant majority of the increased number of files and build time comes from Firestore and its dependencies which is substantially bigger than anything else in Firebase.

See a related issue at https://github.com/firebase/firebase-ios-sdk/issues/6564

  •  Tags:  
  • Related