Developer Developer - 4 months ago 42
iOS Question

Adding Google_analytics for iOS is not working tried many ways?

Hi I'm getting following error and so far not able to fix it.

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GAI", referenced from:
objc-class-ref in AppDelegate.o objc-class-ref in HomeViewController.o "_OBJC_CLASS_$_GAITrackedViewController", referenced from: _OBJC_CLASS_$_HomeViewController in HomeViewController.o "_OBJC_METACLASS_$_GAITrackedViewController", referenced from: _OBJC_METACLASS_$_HomeViewController in HomeViewController.o ld: symbol(s) not found for architecture x86_64


Any help would be appreciated. Thanks in advance !

Answer

Had same problem till I added the libGoogleAnalyticsServices.a to "Link Binary with Libraries"

Here is my full list:

enter image description here

Comments