2014-01-07 69 views
0

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

我添加靜態庫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) 

回答

0

ProtobufObjC支持iOS版只能通過CocoaPods工具。

  1. 運行終端並鍵入:sudo gem install cocoapods
  2. 將項目保存爲xCode上的工作區。
  3. 這樣創建項目的文件夾Podfilehttps://github.com/yandexmobile/metrica-sample-ios/blob/master/Podfile
  4. 運行終端,輸入:pod install

P.S. Google Analytics很差。但是Yandex.Metrika是頭巾,並且必須像這樣死於API。 Yandex.Metrika不適用於x64處理器,並且不能在App Store上發佈。

0

Altaveron,關於你的評論「Yandex.Metrika不與x64處理器的工作,並不能在App Store發佈的」

我想你說的是圖書館的第一個版本。應該指出的是,Yandex.Metrica 1.2也適用於arm64。

0

我目前支持YandexMetrica。感謝您與我們分享這一點。 版本1.2,可通過CocoaPods支持x86_64和arm64切片。是的 - CocoaPods是分發我們的圖書館的最佳方式,因爲它比手動添加它容易得多。你遇到的其他問題有哪些?

相關問題