简体   繁体   English

使用Google Analytics 2.0 B4时出现错误的错误

[英]Bad exc error when using Google Analytics 2.0 B4

Sample project, with Google Analytics usage [Xcode Project][1] 示例项目,使用Google Analytics [Xcode Project] [1]

Actually i have create a phoneplugin for google analytics. 实际上我已经为谷歌分析创建了一个手机插件。 My code seems to be working fine, but when i tried adding my code to an existing project , i am getting bad exc error. 我的代码似乎工作正常,但当我尝试将我的代码添加到现有项目时,我的错误是错误的。 I really cant find why can the code work on a new project but doesnt work on a old project. 我真的无法找到为什么代码可以在一个新项目上工作,但不能在一个旧项目上工作。

Code works really well in a new project. 代码在新项目中非常有效。 I can see the data in analytics dashboard and everything works fine in it 我可以在分析仪表板中看到数据,一切正常

following the documentation : 遵循文件:

First you will need a Google Analytics tracking ID to track application usage with the SDK. 首先,您需要使用Google Analytics跟踪ID来跟踪SDK的应用程序使用情况。

Second continue by adding the header files (GAI.h, GAITracker.h, GAITransaction.h, and GAITransactionItem.h) and libGoogleAnalytics.a to your XCode project. 第二步继续将头文件(GAI.h,GAITracker.h,GAITransaction.h和GAITransactionItem.h)和libGoogleAnalytics.a添加到您的XCode项目中。 Your app must link the following frameworks: 1- CoreData.framework 2- SystemConfiguration.framework 您的应用必须链接以下框架:1- CoreData.framework 2- SystemConfiguration.framework

NB:To use a version of the library with debug symbols intact, link against libGoogleAnalytics_debug.a instead of libGoogleAnalytics.a. 注意:要使用完整调试符号的库版本,请链接libGoogleAnalytics_debug.a而不是libGoogleAnalytics.a。 This may be useful if you experience exceptions or crashes originating in the SDK. 如果您遇到源自SDK的异常或崩溃,这可能很有用。

BR BR

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

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