I used the non-cocoa pods "framework" version, since I was not confortable with how that work with the xcode project and Qt's build system. It may be possible, but I did not try it. 
 
Once you get the frameworks extracted, I added them to my project's ios directory, and added the following to the project. Note that all of these are a result of Firebase. 
ios {
QMAKE_LFLAGS += -F$$PWD/ios/Frameworks/Firebase/Analytics
QMAKE_LFLAGS += -F$$PWD/ios/Frameworks/Firebase/Messaging
QMAKE_LFLAGS += -ObjC
INCLUDEPATH += $$PWD/ios/Frameworks/Firebase/Analytics/FirebaseAnalytics.framework/Headers
INCLUDEPATH += $$PWD/ios/Frameworks/Firebase/Analytics/FirebaseInstanceID.framework/Headers
INCLUDEPATH += $$PWD/ios/Frameworks/Firebase/Messaging/FirebaseMessaging.framework/Headers
LIBS +=-framework FirebaseAnalytics
LIBS +=-framework FirebaseInstanceID
LIBS +=-framework GoogleInterchangeUtilities
LIBS +=-framework GoogleSymbolUtilities
LIBS +=-framework GoogleUtilities
LIBS +=-framework FirebaseMessaging
LIBS +=-framework GoogleIPhoneUtilities
LIBS +=-framework AddressBook
LIBS += -lsqlite3
}
 
Sent: Tuesday, January 03, 2017 at 6:54 PM
From: "Per Ljung" <pblj...@gmail.com>
To: interest@qt-project.org
Subject: [Interest] Firebase C++ with Qt
Hi -
I've tried to follow the iOS Firebase C++ & CocoaPods example at 
https://github.com/firebase/quickstart-cpp/tree/master/database/testapp
which uses analytics, auth and database features to make a minimal Qt app without CocoaPods.
 
I cut&paste Firebase C++ code from the sample testapp/src/common_main.cc. I only try to set & get integers in my public read/write database. I include the frameworks and source in testapp/Pods in the Pro file at
 
The app compiles and begins to run. The database ref is reported as valid, but database set/get hangs in WaitForComplete() waiting for future.Status() to be updated. After 60s there is a timeout error "CFNetwork SSLHandshake failed (-9806)". 
 
Any ideas of what is wrong? I can read/write to the database using curl. 
Thanks  
 
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to