简体   繁体   English

错误整合Google Analytics for iOs App?

[英]Error integration Google Analytics for iOs App?

I added these below lines in my app delegate 我在我的应用程序委托中添加了以下几行

     // Optional: automatically send uncaught exceptions to Google Analytics.
[GAI sharedInstance].trackUncaughtExceptions = YES;

// Optional: set Google Analytics dispatch interval to e.g. 20 seconds.
[GAI sharedInstance].dispatchInterval = 20;

// Optional: set Logger to VERBOSE for debug information.
[[[GAI sharedInstance] logger] setLogLevel:kGAILogLevelVerbose];

// Initialize tracker. Replace with your tracking ID.
[[GAI sharedInstance] trackerWithTrackingId:@"UA-my -id"];

On building the app I am getting the below error 在构建应用程序时,出现以下错误

错误图片

How can I solve this? 我该如何解决?

Solved Only needed to add the Analytics library 已解决仅需要添加Analytics库

Implementing Google Analytics 实施Google Analytics(分析)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM