如何在我的iOS应用程序中添加Yandex Metrika(Metrica)支持?

时间:2014-01-07 23:43:25

标签: ios iphone yandex yandex-api yandex-metrika

如何在我的iOS应用中添加Yandex.Metrika支持?

我添加了静态库libYandexMobileMetrica.alibsqlite3.dylib但仍然出现以下错误:

(null): "_OBJC_CLASS_$_KSCrashReportFilterAppleFmt", referenced from:
(null): "_OBJC_CLASS_$_PBAppendableArray", referenced from:
(null): "_OBJC_CLASS_$_PBUnknownFieldSet", referenced from:
(null): "_OBJC_CLASS_$_PBExtensionRegistry", referenced from:
(null): "_OBJC_CLASS_$_PBMutableExtensionRegistry", referenced from:
(null): "_OBJC_CLASS_$_PBGeneratedMessage_Builder", referenced from:
(null): "_OBJC_METACLASS_$_PBGeneratedMessage_Builder", referenced from:
(null): "_OBJC_CLASS_$_PBGeneratedMessage", referenced from:
(null): "_computeUInt32Size", referenced from:
(null): "_computeStringSize", referenced from:
(null): "_computeEnumSize", referenced from:
(null): "_computeMessageSize", referenced from:
(null): "_computeUInt64Size", referenced from:
(null): "_computeSInt32Size", referenced from:
(null): "_computeDoubleSize", referenced from:
(null): "_OBJC_IVAR_$_PBGeneratedMessage.memoizedSerializedSize", referenced from:
(null): "_OBJC_METACLASS_$_PBGeneratedMessage", referenced from:
(null): "_OBJC_CLASS_$_ASIdentifierManager", referenced from:
(null): "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
(null): "_OBJC_CLASS_$_KSCrash", referenced from:
(null): Linker command failed with exit code 1 (use -v to see invocation)

3 个答案:

答案 0 :(得分:0)

适用于iOS的

ProtobufObjC仅可通过CocoaPods工具使用。

  1. 运行终端并输入:sudo gem install cocoapods
  2. 将项目保存为xCode上的工作区。
  3. 在项目文件夹Podfile上创建,如下所示:https://github.com/yandexmobile/metrica-sample-ios/blob/master/Podfile
  4. 运行终端并输入:pod install
  5. P.S。 Google Analytics很差。但是Yandex.Metrika是头脑风暴,必须死于这样的API。 Yandex.Metrika不适用于x64处理器,无法在App Store上发布。

答案 1 :(得分:0)

Altaveron,关于你的评论“Yandex.Metrika不适用于x64处理器,无法在App Store上发布”

我猜你在谈论第一版的库。值得注意的是,Yandex.Metrica 1.2也适用于arm64。

答案 2 :(得分:0)

我目前正在支持YandexMetrica。感谢您与我们分享这一点。 版本1.2,可通过CocoaPods获得,支持x86_64和arm64切片。是的 - CocoaPods是分发我们库的一种更好的方式,因为它比手工添加它容易得多。你遇到的其他问题是什么?