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

后端 未结 10 1905
傲寒
傲寒 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:18

    GoogleAnalytics-iOS-SDK has been deprecated in favor of GoogleAnalytics

    so just replace the line in your pod file to

     pod 'GoogleAnalytics'
    
    0 讨论(0)
  • 2020-12-08 10:19

    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.

    0 讨论(0)
  • 2020-12-08 10: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)

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

    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.

    AdSupport.framework was already included in my project.

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

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