0

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

我添加了静态库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)
4

3 回答 3

0

ProtobufObjCiOS 版只能通过CocoaPods工具获得。

  1. 运行终端并输入:sudo gem install cocoapods.
  2. 将您的项目保存为 xCode 上的工作区。
  3. 像这样在项目的文件夹上创建Podfilehttps://github.com/yandexmobile/metrica-sample-ios/blob/master/Podfile
  4. 运行终端并输入:pod install.

PSGoogle Analytics很差。但是Yandex.Metrika是硬着头皮,必须像这样的 API 死掉。Yandex.Metrika不适用于 x64 处理器,并且无法在 App Store 上发布。

于 2014-01-08T00:06:46.083 回答
0

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

我猜你在谈论图书馆的第一个版本。应该注意的是,Yandex.Metrica 1.2 也可用于 arm64。

于 2014-02-06T11:08:46.913 回答
0

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

于 2014-02-06T11:23:57.347 回答