Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ios - linking error #19
What library should be linked to fix below error?
I would like to stay with command line and cmake and do not use CocoaPods and open xcode.
In documentation I see "Integrate without CocoaPods"
This is my cmake:
@dantti This is exactly the same issue described in: https://stackoverflow.com/questions/51646982/qt-firebase-c-sdk-linking-issues-on-ios
I'm poking around a little at your issue, and just want to ask a few more questions if possible.
It looks like you're following the instructions on https://firebase.google.com/docs/ios/setup#frameworks, but only using the firebase-cpp SDK. The former actually links to this additional zip file to pull down: https://firebase.google.com/download/ios
I will say that, without seeing your entire CMakeLists.txt I may be making incorrect assumptions, so thank you for your patience if I say something totally out of left field.
First, I don't see any
I'm assuming that the plugins you want are Remote Config and Analytics. If you're following the iOS instructions for not using cocoapods, the Readme.md lists:
as the frameworks you'll need.
Once you have all of those, the C++ SDK should function correctly on iOS. These are a lot of dependencies, which is why cocoapods is so handy in this case.
I'm sure you've found it, but there is a good example project here: https://github.com/firebase/quickstart-cpp/tree/master/remote_config/testapp
Let me know if that helps at all,
@patm1987 thank you for explanation. It was really helpful!
In deed linker error are because I did not link against libraries from:
@stewartmiles I think that below section should be updated for CMake and iOS: