[Interest] CocoaPods and Qt

Jason H jhihn at gmx.com
Wed Aug 31 15:50:32 CEST 2016


I got it to work but for my part, I ended up using the following in my ios {} block.

	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, August 30, 2016 at 12:47 PM
> From: "Manoel Neto" <manoelnetom at gmail.com>
> To: "Jason H" <jhihn at gmx.com>
> Cc: "Interests Qt" <interest at qt-project.org>
> Subject: Re: [Interest] CocoaPods and Qt
>
> 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