Google Analytics Phonegap 插件已过时且无法正常工作
我最近刚刚对 Google Analytics 插件感兴趣,但发现自从 5 月份发布以来,它已经被销毁、停止使用,最近才在官方 PhoneGap gitHub 中恢复。
虽然它在 Android 上很有魅力,但在 iOS 上却不然。
我必须解决大部分错误,但是(过时的导入方式)我仍然收到此错误:
架构 i386 的未定义符号: “OBJC_CLASS$_GANTracker”,引用自: GoogleAnalyticsPlugin.o 中的 objc-class-ref ld:未找到架构 i386 的符号 收集2:ld返回1退出状态
有人可以帮忙吗?
编辑:
正如我自己的答案所示,我设法让该插件在 iOS 和 Android 上运行。但是,我还没有找到一种方法来进行一些快速而果断的测试来确定跟踪,任何人都可以提供帮助吗?
I have just recently got interested in the Google Analytics plugin but found out since it has been released in May that it has been destroyed, discontinued and just recently reinstated in the official phonegap gitHub.
While it works like a charm for Android it does not for iOS.
I got to solve most of the bug but (outdated way to do an import) I am still getting this error :
Undefined symbols for architecture i386:
"OBJC_CLASS$_GANTracker", referenced from:
objc-class-ref in GoogleAnalyticsPlugin.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
can someone help please ?
EDIT:
as my own answer shows I managed to get the plugin to run on iOS and Android. However, I haven't find a way to get some quick and decisive test to ascertain the tracking, can anyone help at all ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在其他地方找到了对我的问题的解释:
https://github.com /purplecabbage/phonegap-plugins/issues/29#issuecomment-2367223
I found an explanation to my issue other there:
https://github.com/purplecabbage/phonegap-plugins/issues/29#issuecomment-2367223