Error while integrating Google Analytics SDK (GoogleAnalyticsiOS_2.0beta4) in my iOS app

前端 未结 1 1560
清酒与你
清酒与你 2021-01-24 07:09

I am getting following error

duplicate symbol _OBJC_METACLASS_$_GAIDispatcher in:
/Shared/ThirdParty/Analytics/libGoogleAnalytics.a(GAIDispatcher.o)

相关标签:
1条回答
  • 2021-01-24 08:00

    The problem you're seeing is because you have two Google Analytics libraries being included in your built product. The non-Debug version and the Debug version.

    You need to settle on and simply use one of them. Take the non-used one out of your project or uncheck the target's "membership" checkbox in the file inspector for that unwanted library.

    The checkbox I'm talking about is seen below. Instead of "UIKit.framework" (which I quickly selected to make this example), look for one of the two Google Analytics libraries and turn it off.

    Make sure Target Membership is selected for your .m file

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