Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase with Swift

I was attempting to port the firechat-ios project over to Swift and ran into some issues. I suppose this might just be requiring the firebase folks to make some update to their SDK, but I figured I would ask anyway. I wasn't able to successfully build my project after adding Firebase and its dependencies.

I get a warning:

ignoring file /Users/n/Projects/SwiftChat/Firebase.framework/Firebase, missing required architecture x86_64 in file /Users/n/Projects/SwiftChat/Firebase.framework/Firebase (3 slices)

and two errors:

"_OBJC_CLASS_$_Firebase", referenced from: __TFC9SwiftChat14ViewControllercfMS0_FT7nibNameGSQSS_6bundleGSQCSo8NSBundle__S0_ in ViewController.o

And

linker command failed with exit code 1 (use -v to see invocation)

any ideas?

like image 936
Jake Johnson Avatar asked Jun 18 '26 14:06

Jake Johnson


1 Answers

I managed to get it working. It turns out that the video on the firebase website which explains which dependencies to include was out of date. I read further down the page and saw that firebase actually needs two dependencies that I was missing. After adding libc++.dylib, libiucore.dylib, CFNetwork.framework, Security.framework and SystemConfiguration.framework everything worked fine.

like image 128
Jake Johnson Avatar answered Jun 21 '26 04:06

Jake Johnson



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!