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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With