Google analytics 3.08 IOS idfa class missing, won&

2019-01-17 02:47发布

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.

Screenshot for console message

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. 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?

enter image description here

enter image description here

10条回答
一纸荒年 Trace。
2楼-- · 2019-01-17 03:19

pod 'GoogleIDFASupport'

That will let cocoapods get what you need. I havent had to do the force_load of it either.

Installing GoogleIDFASupport (3.14.0) Using GoogleTagManager (3.15.0)

查看更多
对你真心纯属浪费
3楼-- · 2019-01-17 03:21

I am using 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.

查看更多
仙女界的扛把子
4楼-- · 2019-01-17 03:22

All you have to do is to add libAdIdAccess.a to your project. It is part of GoogleAnalyticsServicesiOS_3.09 delivery.

查看更多
狗以群分
5楼-- · 2019-01-17 03:22

I am using 3.0.9. Per Google documentation you need to set tracker.allowIDFACollection to NO on each tracker.

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

This will remove the warning.

查看更多
冷血范
6楼-- · 2019-01-17 03:29

I'm using 3.0.3c and not using IDFA,.

Howerer, "idfa class missing" is still logged.

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

I solved the problem by trying to delete the line above.

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-01-17 03:30

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. You can download it here "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'

查看更多
登录 后发表回答