5

我目前正在开发一个使用地图的应用程序。所以几周前我将 Google Maps SDK v1.4.3 添加到我的项目中。按照入门说明工作得很好。今天我需要将 Google Analytics 添加到我的项目中,所以我下载了最新的 SDK (v3)。我再次按照入门说明进行操作,但现在当我尝试构建我的项目时,我收到以下错误。

你知道我该如何解决这个问题吗?

似乎如果我删除它构建的 -ObjC 标志但是当我调用谷歌地图函数时它会崩溃并出现错误:无法识别的选择器......

所以我被困住了。我不能在同一个项目中使用两个 SDK 吗?

多谢你们

PS:我的项目与 iOS 5 兼容。它适用于 Google Analytics v2 !

duplicate symbol _convertInt64ToUInt64 in:
/Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _convertUInt64ToInt64 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _convertInt32ToUInt32 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _convertUInt32ToInt32 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _logicalRightShift32 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _logicalRightShift64 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _decodeZigZag32 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _decodeZigZag64 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _encodeZigZag32 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _encodeZigZag64 in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeDoubleSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeFloatSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeUInt64SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeRawVarint64Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeInt64SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeInt32SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeRawVarint32Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeFixed64SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeFixed32SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeBoolSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeStringSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeGroupSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeUnknownGroupSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeMessageSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeDataSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeUInt32SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeEnumSizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSFixed32SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSFixed64SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSInt32SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSInt64SizeNoTag in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeDoubleSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeTagSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeFloatSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeUInt64Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeInt64Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeInt32Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeFixed64Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeFixed32Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeBoolSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeStringSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeGroupSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeUnknownGroupSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeMessageSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeDataSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeUInt32Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeEnumSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSFixed32Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSFixed64Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSInt32Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeSInt64Size in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeMessageSetExtensionSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _computeRawMessageSetExtensionSize in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _LITTLE_ENDIAN_32_SIZE in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _LITTLE_ENDIAN_64_SIZE in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(Utilities.o)
duplicate symbol _BUFFER_SIZE in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(CodedInputStream.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
duplicate symbol _DEFAULT_BUFFER_SIZE in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(CodedOutputStream.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
duplicate symbol _DEFAULT_RECURSION_LIMIT in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(CodedInputStream.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
duplicate symbol _DEFAULT_SIZE_LIMIT in:
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/Maps/ProtocolBuffers.framework/ProtocolBuffers(CodedInputStream.o)
    /Users/pprod3/Desktop/Dabrut/MapProject/MapProject/GoogleAnalytics/libGoogleAnalyticsServices.a(GeneratedProtocolBufferFiles.o)
ld: 59 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

1 回答 1

0

我正在集成另一个库,最终遇到了同样的问题。我认为这是因为 -all_load。所以对我来说,解决方案是在调试和发布 pods Pods.degug.xcconfig 和 Pods.release.xcconfig文件中去掉那个标志。

就是这样。

我希望这对将来的某些人有所帮助。

于 2016-05-31T11:05:25.077 回答