将Google Analytics v3和Google Maps 1.4.3添加到我的项目时,重复符号

时间:2013-09-19 11:23:51

标签: ios google-maps sdk google-analytics duplicate-symbol

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

您是否知道如何解决问题?

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

所以我被困住了。我不能在同一个项目中同时使用这两个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)

1 个答案:

答案 0 :(得分:0)

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

就是这样。

我希望这对未来有所帮助。