如何在我的iOS应用中添加Yandex.Metrika
支持?
我添加了静态库libYandexMobileMetrica.a
和libsqlite3.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)
答案 0 :(得分:0)
ProtobufObjC
仅可通过CocoaPods
工具使用。
sudo gem install cocoapods
。Podfile
上创建,如下所示:https://github.com/yandexmobile/metrica-sample-ios/blob/master/Podfile
pod install
。 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是分发我们库的一种更好的方式,因为它比手工添加它容易得多。你遇到的其他问题是什么?