So I'm trying to get Google Analytics installed inside of my app and have been following the instructions from Google located here http://ift.tt/1LymQan.
My Podfile looks ike this:
source 'http://ift.tt/1czpBWo'
platform :ios, '8.0'
use_frameworks!
pod 'Google/Analytics', '~> 1.0.0'
pod 'Google-Mobile-Ads-SDK'
Now everything ran fine after installing pod, but when I added this snippet of code to my AppDelegate.swift file, the app failed to compile.
// Configure tracker from GoogleService-Info.plist.
var configureError:NSError?
GGLContext.sharedInstance().configureWithError(&configureError)
assert(configureError == nil, "Error configuring Google services: \(configureError)")
// Optional: configure GAI options.
var gai = GAI.sharedInstance()
gai.trackUncaughtExceptions = true // report uncaught exceptions
gai.logger.logLevel = GAILogLevel.Verbose // remove before app release
This is causing the following compile errors:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GAI", referenced from: __TMaCSo3GAI in AppDelegate.o "_OBJC_CLASS_$_GGLContext", referenced from: __TMaCSo10GGLContext in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any idea how to fix this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire