[Interest] CocoaPods and Qt

Manoel Neto manoelnetom at gmail.com
Tue Aug 30 18:47:08 CEST 2016


Hi Jason,

GoogeCM changed to Firebase Claoud Message. You could configure
Firebase manually. Create a dir named like "iOS/Firebase". There you
showld put these files (download these files from GoogleFirebase) :
FirebaseAnalytics , FirebaseMessaging , GoogleIPhoneUtilities ,
FirebaseInstanceID , GoogleInterchangeUtilities ,
GoogleSymbolUtilities and GoogleUtilities.  In your .pro put this:

 mac: LIBS += -F$$PWD/ios/Firebase/ -framework FirebaseAnalytics


    INCLUDEPATH += $$PWD/ios/Firebase

    DEPENDPATH += $$PWD/ios/Firebase


    mac: LIBS += -F$$PWD/ios/Firebase/ -framework FirebaseMessaging


    INCLUDEPATH += $$PWD/ios/Firebase

    DEPENDPATH += $$PWD/ios/Firebase


    mac: LIBS += -F$$PWD/ios/Firebase/ -framework GoogleIPhoneUtilities


    INCLUDEPATH += $$PWD/ios/Firebase

    DEPENDPATH += $$PWD/ios/Firebase


    mac: LIBS += -F$$PWD/ios/Firebase/ -framework FirebaseInstanceID


    INCLUDEPATH += $$PWD/ios/Firebase

    DEPENDPATH += $$PWD/ios/Firebase


    mac: LIBS += -F$$PWD/ios/Firebase/ -framework GoogleInterchangeUtilities


    INCLUDEPATH += $$PWD/ios/Firebase

    DEPENDPATH += $$PWD/ios/Firebase


    mac: LIBS += -F$$PWD/ios/Firebase/ -framework GoogleSymbolUtilities


    INCLUDEPATH += $$PWD/ios/Firebase

    DEPENDPATH += $$PWD/ios/Firebase


    mac: LIBS += -F$$PWD/ios/Firebase/ -framework GoogleUtilities


    INCLUDEPATH += $$PWD/ios/Firebase

    DEPENDPATH += $$PWD/ios/Firebase

After that, change or configure:


 QMAKE_LFLAGS += $(inherited) -ObjC -l"c++" -l"sqlite3" -l"z"
-framework "AdSupport" -framework "AddressBook" -framework
"CoreGraphics" -framework "FirebaseAnalytics" -framework
"FirebaseInstanceID" -framework "FirebaseMessaging" -framework
"GoogleIPhoneUtilities" -framework "GoogleInterchangeUtilities"
-framework "GoogleSymbolUtilities" -framework "GoogleUtilities"
-framework "SafariServices" -framework "StoreKit" -framework
"SystemConfiguration"

   Thats it.

Best R Manoel

On Tue, Aug 30, 2016 at 1:05 PM, Jason H <jhihn at gmx.com> wrote:
> I'm fighting the google cloud messaging. It is packaged as CocoaPods, but I manually added the .a and frameworks to the project.
>
> I get the errors (runtime):
> You have enabled the CloudMessaging service in Developer Console, but it appears as though your Podfile is missing the line: 'pod "Google/CloudMessaging" or you may need to run `pod update` in your project directory.
> *** Assertion failure in -[QIOSApplicationDelegate application:didFinishLaunchingWithOptions:], /Users/jhihn/Projects/TestAWSPush/ios/QtAppDelegate.mm:47
> *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error configuring Google services: Error Domain=com.google.greenhouse Code=-106 "Missing expected subspecs." UserInfo={NSLocalizedFailureReason=Some subspecs are not pod installed. See log for details., NSLocalizedDescription=Missing expected subspecs.}'
>
> Does anyone know what I have to do to use CocoaPods with Qt/qmake projects?
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



-- 
Manoel Carvalho Marques Neto
manoelnetom at gmail.com



More information about the Interest mailing list