Tag: 谷歌分析

苹果Mach-O链接器错误? 铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用)?

我正在谷歌分析(IOS,目标C),当我将这个文件“libGoogleAnalyticsServices.a”添加到我的项目我得到这个错误 "Apple Mach-O Linker Error" "clang: error: linker command failed with exit code 1 (use -v to see invocation)". 我成功添加了以下文件。 GAI.h GAIDictionaryBuilder.h GAIEcommerceProduct.h GAIEcommerceProductAction.h GAIEcommercePromotion.h GAIFields.h GAILogger.h GAITrackedViewController.h GAITracker.h CoreData.framework SystemConfiguration.framework libz.dylib libsqlite3.dylib 当我添加“libGoogleAnalyticsServices.a”这个文件我得到错误。

在iOS模拟器中使用Google Analytics可以跟踪应用程序吗?

我试图使用Google Analytics(分析)来追踪我的应用程序,但是没有看到它何时以“实时模式”打开。 我正在使用Google Analytics for Mobile Apps iOS SDK v3 。 在Delegate.m : – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ // Optional: automatically send uncaught exceptions to Google Analytics. [GAI sharedInstance].trackUncaughtExceptions = YES; // Optional: set Google Analytics dispatch interval to eg 20 seconds. [GAI sharedInstance].dispatchInterval = 20; // Optional: set Logger to VERBOSE for debug information. […]

在swift 2和xcode 7 beta 4中设置Google分析时出错

我使用cocoapods设置了我的xcode项目,添加了google analytics作为pod。 之后,我在项目文件的正下方导入了GoogleService-info.plist。 Bridge头部也被创build,并在AppdDelegate中添加代码。 在编译过程中,一切运行正常,但是当我启动debugging器时,我收到这些错误: 2015-08-14 16:45:25.866 GetOut[30738:3729265] Client ID must not be nil or empty. 2015-08-14 16:45:25.867 GetOut[30738:3729265] Client ID must not be nil or empty. 2015-08-14 16:45:25.867 GetOut[30738:3729265] GCM Sender ID must not be nil or empty. 2015-08-14 16:45:25.867 GetOut[30738:3729265] Attempted to configure [Identity, Analytics, AdMob, SignIn, AppInvite, CloudMessaging]. 2015-08-14 16:45:25.867 GetOut[30738:3729265] Successfully […]

Google Analytics与iOS整合时出错

我需要将谷歌分析添加到我的iOS应用程序, 我已经实施了这3个步骤。 第1步:下载谷歌分析库文件,并将此文件添加到项目, GAI.h GAITracker.h GAITrackedViewController.h -GAIDictionaryBuilder.h GAIFields.h GAILogger.h libGoogleAnalyticsServices.a CoreData.framework SystemConfiguration.framework libz.dylib 第2步:在didFinishLaunchingWithOptions添加此代码 – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [GAI sharedInstance].trackUncaughtExceptions = YES; [GAI sharedInstance].dispatchInterval = 20; [[[GAI sharedInstance] logger] setLogLevel:kGAILogLevelVerbose]; [[GAI sharedInstance] trackerWithTrackingId:@"UA-XXXX-Y"]; } 第3步:例如,假设您有一个“主屏幕”视图,您想要使用视图控制器标题进行测量,如下所示: @interface HomeViewController : UIViewController 我已经更新了这个标题: #import "GAITrackedViewController.h" @interface HomeViewController : GAITrackedViewController 这样做后,我越来越像错误, duplicate symbol _OBJC_CLASS_$_GAIUtil in: /Users/Supriya/Desktop/BTS 2.0/BTS/BTS/Library/libGoogleAnalytics_debug.a(GAIUtil.o) […]

Google Analytics iOS SDK [GAIReachabilityChecker reachabilityFlagsChanged:crash

我一直在遇到与GAIReachabilityChecker相关的iOS应用程序崩溃。 它似乎崩溃在这个function: – [GAIReachabilityChecker reachabilityFlagsChanged:] 这是错误日志: 线程:崩溃:com.apple.main-thread 0 libobjc.A.dylib 0x00000001981939d0 objc_msgSend + 16 1 0x0000000100274de8 -[GAIReachabilityChecker reachabilityFlagsChanged:] 2 SystemConfiguration 0x000000018f0905cc reachPerform + 836 3 CoreFoundation 0x000000018c1db77c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 4 CoreFoundation 0x000000018c1daad8 __CFRunLoopDoSources0 + 256 5 CoreFoundation 0x000000018c1d8d70 __CFRunLoopRun + 632 6 CoreFoundation 0x000000018c119b38 CFRunLoopRunSpecific + 452 7 GraphicsServices 0x0000000191b3f830 GSEventRunModal + 168 8 UIKit […]

Google Analytics Pod会安装太多的依赖项

我刚刚在iOS开发人员指南中介绍了Google Analytics Pod,其中包括: pod 'Google/Analytics' 运行时 pod install 它会安装以下依赖项: Installing FirebaseAnalytics (3.2.0) Installing FirebaseInstanceID (1.0.6) Installing Google (3.0.3) Installing GoogleAnalytics (3.14.0) Installing GoogleInterchangeUtilities (1.2.1) Installing GoogleSymbolUtilities (1.1.1) Installing GoogleUtilities (1.3.1) 由于我不使用Firebase,因此我想摆脱FirebaseAnalytics和FirebaseInstanceID (以及框架本身不需要的所有窗格)。 安装未使用的依赖关系只会增加我的应用程序大小。 我只想安装绝对最小数量的豆荚来运行GoogleAnalytics 。 任何想法如何踢未使用的豆荚?

Google AnalyticsSDK for iOS是否代表崩溃报告?

在他们的网站Google Analytics SDK中没有提到这一点 我正在谈论自动未捕获的exception处理: – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [GAI sharedInstance].trackUncaughtExceptions = YES; // Enable //… }

Google Analytics(分析)不适用于iOS

我在Google Analytics帐户中的configuration: 我的代码: – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { GAI *gai = [GAI sharedInstance]; //gai.optOut = YES; gai.trackUncaughtExceptions = YES; // report uncaught exceptions gai.logger.logLevel = kGAILogLevelVerbose; // remove before app release [[GAI sharedInstance] setDispatchInterval:10.0]; [[GAI sharedInstance] trackerWithTrackingId:@"UA-xxxxxx-3"]; return YES; } 在视图控制器中: (void)viewWillAppear:(BOOL)animated {[super viewWillAppear:animated]; id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker]; [tracker set:kGAIScreenName value:@"Detail Screen"]; […]

体系结构x86_64的重复符号从CocoaPods添加窗格

我正在尝试将Google Analytics(分析)用于我的应用程序。 但是,通过CocoaPod添加它后立即我得到这个错误: 以前我在Google我的广告连播中有GoogleMaps和GCM。 现在我的Pod看起来像这样: platform :ios, '8.0' pod 'Google/Analytics' pod 'Google/CloudMessaging' pod 'GoogleMaps' 我如何解决这个错误: *编辑 这解决了我的问题: 如果我运行我现有的项目X-Code 7那么我没有得到错误。 但我希望它运行在Xcode 6.4所以我添加了旧版本的GA并且在X-Code 6.4. 我手动添加了旧的sdk但是如果有人想通过Cocoa-Pod添加它,那么下面是这样做的方法: pod 'Google/Analytics' pod 'GoogleAnalytics', '3.13.0'

谷歌分析不工作的iOS

我已经实施了3个步骤。 第1步:我已下载谷歌分析库文件,并将此文件添加到项目, GAI.h GAITrackedViewController.h GAITracker.h GAITransaction.h GAITransactionItem.h libGoogleAnalytics.a CoreData.framework SystemConfiguration.framework 第2步:在didFinishLaunchingWithOptions添加此代码 – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [UIApplication sharedApplication].statusBarHidden = NO; [GAI sharedInstance].trackUncaughtExceptions = YES; [GAI sharedInstance].dispatchInterval = 2; [GAI sharedInstance].debug=YES; [[GAI sharedInstance] trackerWithTrackingId:@"UA-XXXX-1"]; return YES; } 第3步:在我的HomeScreen视图加载后启动图像我写了这个,我已经更新此标题: #import "GAITrackedViewController.h" @interface BTSHomeViewController : GAITrackedViewController 和BTSHomeViewController.m – (void)viewDidLoad { … self.trackedViewName = @"Home"; } 注意:我写了self.trackedViewName = […]