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 !
As more information has surfaced, it appears that Intelligent Tracking Prevention (ITP) in Safari 14 is not completely blocking Google Analytics. Instead, it's blocking third-party tracking cookies and cross-site scripting requests, which limits portions of Google Analytics.
Another reason why your Google Analytics is not working is that it might be conflicting with another script on your webpage. If you have other scripts running on your website, make sure they don't use the same variables as Google Analytics.
Use Tag Manager with Google Analytics and Firebase. To get the latest mobile app report features in Google Analytics, use Firebase in your Android and iOS apps. Once enabled in your app, Google Analytics will automatically collect and report on built-in events and user properties.
Had same problem till I added the libGoogleAnalyticsServices.a
and libsqlite3.0.dylib
to "Link Binary with Libraries"
Here is my full list:
I have tried reproducing the issue that you've been facing and ended up with the same error you got. But, I was able to fix it. What I have done is, I have added the file libGoogleAnalyticsServices.a
from the SDK folder to my project. Then, I added libsqlite3.0.dylib
to the Link Binary With Libraries in the Build Phases
tab. It worked!!!!
PS: Make sure you've added all the headers and mentioned frameworks in your project. The key is to include libGoogleAnalyticsServices.a
and libsqlite3.0.dylib
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With