简体   繁体   English

谷歌分析3.08 IOS idfa类缺失,不会收集idfa

[英]Google analytics 3.08 IOS idfa class missing, won't collect idfa

I downloaded google analytics and i followed their instructions how to implement analytics in application. 我下载了谷歌分析,我按照他们的指示如何在应用程序中实施分析。 But whatever i tried i get this log in xcode: idfa class missing, won't collect idfa . 但无论我尝试什么,我得到这个登录xcode: idfa class missing, won't collect idfa

控制台消息的屏幕截图

So i google it and found that apple will reject apps that have this warning. 所以我谷歌它发现苹果会拒绝有此警告的应用程序。 I also discovered that google fixed this issue with 3.03c release, and that we don't have to import library that uses ads. 我还发现google使用3.03c版本解决了这个问题,而且我们不必导入使用广告的库。 I have also run their example and i get same log in their example. 我也运行了他们的例子,我在他们的例子中得到了相同的日志。

So my question is, will Apple approve my application, how can I fix it? 所以我的问题是,Apple会批准我的申请,我该如何解决?

在此输入图像描述

在此输入图像描述

I have the same issue. 我有同样的问题。 It seams that 3.08 lib is linked with iAd.Framework Here is what I did - I've rolled back to the version 3.03c. 它接缝3.08 lib与iAd.Framework链接这是我做的 - 我已回滚到3.03c版本。 You can download it here " https://dl.google.com/googleanalyticsservices/GoogleAnalyticsServicesiOS_3.03c.zip 您可以在此处下载“ https://dl.google.com/googleanalyticsservices/GoogleAnalyticsServicesiOS_3.03c.zip

The best way is to use Cocopoads for managing libraries with pod 'GoogleAnalytics-iOS-SDK', '3.0.3c' 最好的方法是使用Cocopoads来管理带有pod 'GoogleAnalytics-iOS-SDK', '3.0.3c'

I am using 3.0.9 . 我使用的是3.0.9 I was able to remove the warning by linking in the libAdIdAccess.a library provided with the GoogleAnalytics SDK and the AdSupport.framework . 我可以通过链接GoogleAnalytics SDKAdSupport.framework提供的libAdIdAccess.a库来删除警告。

I am using the version 3.0.9 and to get rid of this warning I had to link the library libAdIdAccess.a and the AdSupport.framework manually. 我正在使用3.0.9版本并且要摆脱这个警告我必须手动链接库libAdIdAccess.aAdSupport.framework

To do so simply add the following lines into your build settings Other Linker Flags (OTHER_LDFLAGS) : 为此,只需将以下行添加到您的构建设置中Other Linker Flags (OTHER_LDFLAGS):

-framework AdSupport -framework AdSupport

-force_load "${PODS_ROOT}/GoogleAnalytics-iOS-SDK/libAdIdAccess.a" -force_load“$ {PODS_ROOT} /GoogleAnalytics-iOS-SDK/libAdIdAccess.a”

It should look like this: 它应该如下所示: 在此输入图像描述

Link: Official Documentation 链接: 官方文档

Just for complete other responses. 仅供完整的其他回复。 I'm using the Google Analytics SDK v3.09 which I integrated without CocoaPod within Xcode 6. In order to remove the warning, I simply added the libAdIdAccess.a static library to my project by a drag and drop. 我正在使用我在Xcode 6中没有CocoaPod的Google Analytics SDK v3.09。为了删除警告,我只是通过拖放将libAdIdAccess.a静态库添加到我的项目中。

AdSupport.framework was already included in my project. AdSupport.framework已包含在我的项目中。

Note: I don't know why but sometimes, Xcode is mistaken for path adding an new library by this way what is resulting into a link error. 注意:我不知道为什么,但有时候,Xcode被误认为是通过这种方式添加新库的路径导致链接错误。 In this case just modify the path in the Library Search Path option from the Build Settings : replace $(PROJECT_DIR)/YourDirectory/GoogleAnalyticsLibrary-3.09 by "$(SRCROOT)/YourDirectory/GoogleAnalyticsLibrary-3.09" 在这种情况下,只需修改“构建设置”中“库搜索路径”选项中的路径:将$(PROJECT_DIR)/YourDirectory/GoogleAnalyticsLibrary-3.09替换$(PROJECT_DIR)/YourDirectory/GoogleAnalyticsLibrary-3.09 "$(SRCROOT)/YourDirectory/GoogleAnalyticsLibrary-3.09"

I'm using v3.08 and get the same warning. 我正在使用v3.08并获得相同的警告。 I just submitted my app and it was approved by Apple. 我刚刚提交了我的应用程序,它已被Apple批准。 I think they are aware of the issue but did not enforce it in my case. 我认为他们知道这个问题,但在我的情况下没有强制执行。 You can submit your app and take the time between submission and decision to remove 3.08 and go back to 3.03c just in case they reject it. 您可以提交您的应用程序,并在提交和决定之间花时间删除3.08并返回3.03c以防万一他们拒绝它。

GoogleAnalytics-iOS-SDK has been deprecated in favor of GoogleAnalytics GoogleAnalytics-iOS-SDK已被弃用,转而使用GoogleAnalytics

so just replace the line in your pod file to 所以只需将pod文件中的行替换为

 pod 'GoogleAnalytics'

All you have to do is to add libAdIdAccess.a to your project. 您所要做的就是将libAdIdAccess.a添加到您的项目中。 It is part of GoogleAnalyticsServicesiOS_3.09 delivery. 它是GoogleAnalyticsServicesiOS_3.09投放的一部分。

pod 'GoogleIDFASupport' pod'GoogleIDFASupport'

That will let cocoapods get what you need. 这将让cocoapods得到你需要的东西。 I havent had to do the force_load of it either. 我也没有必要做force_load。

Installing GoogleIDFASupport (3.14.0) Using GoogleTagManager (3.15.0) 使用GoogleTagManager安装GoogleIDFASupport(3.14.0)(3.15.0)

I'm using 3.0.3c and not using IDFA,. 我正在使用3.0.3c而不使用IDFA。

Howerer, "idfa class missing" is still logged. 但是,“idfa class missing”仍然记录在案。

GAI.sharedInstance().logger.logLevel = GAILogLevel.Verbose

I solved the problem by trying to delete the line above. 我试图删除上面的行来解决问题。

I am using 3.0.9. 我使用的是3.0.9。 Per Google documentation you need to set tracker.allowIDFACollection to NO on each tracker. 根据Google文档,您需要在每个跟踪器上将tracker.allowIDFACollection设置为NO。

id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
tracker.allowIDFACollection = NO;

This will remove the warning. 这将删除警告。

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

相关问题 iOS-Google AdMob v6.12.0-“缺少IDFA类,不会收集IDFA” - iOS - Google AdMob v6.12.0 - “idfa class missing, won't collect idfa” iOS上的Google Analytics IDFA使用情况 - Google analytics IDFA usage on iOS 是否可以在Google Analytics(分析)中捕获iOS 6 IDFA - Is it ok to capture iOS 6 IDFA in Google Analytics Google Analytics(分析) - 受众特征 - IDFA - Google Analytics - Demographics - IDFA Google Analytics(分析)iOS SDK 3.0.8 IDFA App Store拒绝 - Google Analytics iOS SDK 3.0.8 IDFA App Store rejection 我是否需要征得同意才能在不使用 IDFA 的 iOS 应用中使用 Google Analytics(分析)和 AdMob? - Do I need to ask for consent to use Google Analytics and AdMob in an iOS app that doesn't use the IDFA? Google Analytics(分析)iOS是否需要AdSupport才能使用IDFA - Does Google Analytics iOS requires AdSupport to use IDFA 无法使用IDFA的Google Analytics(分析)iOS SDK验证人口统计报告的跟踪代码 - Cant validate tracking code for demographic reports using Google Analytics iOS SDK with IDFA Google Analytics iOS - 没有跟踪 ID 以启用 App+Web 资源的 IDFA 收集 - Google Analytics iOS - No tracking ID to enable IDFA collection for App+Web property 如何在 iOS 的模块化架构中收集 Firebase 的 IDFA 14 - How to collect IDFA for Firebase in modular architecture on iOS 14
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM