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

后端 未结 10 1904
傲寒
傲寒 2020-12-08 09:24

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 mis

相关标签:
10条回答
  • 2020-12-08 10:07

    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'

    0 讨论(0)
  • 2020-12-08 10:08

    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.

    To do so simply add the following lines into your build settings Other Linker Flags (OTHER_LDFLAGS) :

    -framework AdSupport

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

    It should look like this: enter image description here

    Link: Official Documentation

    0 讨论(0)
  • 2020-12-08 10:10

    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.

    0 讨论(0)
  • 2020-12-08 10:12

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

    0 讨论(0)
  • 2020-12-08 10:13

    I'm using v3.08 and get the same warning. I just submitted my app and it was approved by 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.

    0 讨论(0)
  • 2020-12-08 10:14

    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.

    0 讨论(0)
提交回复
热议问题