I am trying to add Google Analytics in my iSO app and I am using Google Analytics latest SDK
https://developers.google.com/analytics/devguides/collection/ios/v3/.
Added all required header and frameworks to my project successfully. But while running my app I am getting below errors
(null): "_OBJC_CLASS_$_GGLContext", referenced from:objc-class-ref in AppDelegate.o
(null): Linker command failed with exit code 1 (use -v to see invocation)
Below is the code which I am writtig in AppDelegate.m file
// Configure tracker from GoogleService-Info.plist.
NSError *configureError;
[[GGLContext sharedInstance] configureWithError:&configureError];
NSAssert(!configureError, @"Error configuring Google services: %@", configureError);
// Optional: configure GAI options.
GAI *gai = [GAI sharedInstance];
gai.trackUncaughtExceptions = YES; // report uncaught exceptions
gai.logger.logLevel = kGAILogLevelVerbose; // remove before app release
Also includes (_OBJC_CLASS_$_GIDSignInButton and _OBJC_CLASS_$_GIDSignIn)
Please tell what I am missing. Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…