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



如何在我的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)

适用于 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

附言 Google Analytics很穷。但Yandex.Metrika是头疼,必须像这样与API一起死去。 Yandex.Metrika不适用于 x64 处理器,也无法在 App Store 上发布。

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

我猜你说的是库的第一个版本。应该注意的是,Yandex.Metrica 1.2也适用于arm64。

我目前支持YandexMetrica。感谢您与我们分享。通过CocoaPods提供的1.2版本支持x86_64和arm64切片。是的 - CocoaPods 是分发我们库的优选方式,因为它比手动添加要容易得多。您还遇到了哪些其他问题?

相关内容

  • 没有找到相关文章

最新更新