我构建了一个 ionic 应用程序并从中构建了 IOS 应用程序。当我尝试构建 IOS 应用程序时,我在此应用程序中使用了 firebase 推送通知,不断收到此错误。我怎样才能摆脱这里提到的重复文件
重复符号 _GTMNSDataZlibRemainingBytesKey 在:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMNSData+zlib.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMNSData+zlib_b66d12cf522b1bac6527d4b701a2e6f4.o)
重复符号_GTMNSDataZlibErrorKey in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMNSData+zlib.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMNSData+zlib_b66d12cf522b1bac6527d4b701a2e6f4.o)
duplicate symbol _GTMNSDataZlibErrorDomain in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMNSData+zlib.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMNSData+zlib_b66d12cf522b1bac6527d4b701a2e6f4.o)
duplicate symbol _OBJC_CLASS_$_GTMLogStandardFormatter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogStandardFormatter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_CLASS_$_GTMLogBasicFormatter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogBasicFormatter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_CLASS_$_GTMLogNoFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogNoFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_CLASS_$_GTMLogMininumLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogMininumLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_CLASS_$_GTMLogMaximumLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogMaximumLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_CLASS_$_GTMLogLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_CLASS_$_GTMLogAllowedLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogAllowedLevelFilter in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_CLASS_$_GTMLogger in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_METACLASS_$_GTMLogger in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogLevelFilter.userDefaults_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogAllowedLevelFilter.allowedLevels_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogger.formatter_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogStandardFormatter.dateFormatter_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogger.filter_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogger.writer_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogStandardFormatter.pname_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogStandardFormatter.pid_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GTMLogLevelFilter.verboseLoggingEnabled_ in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac/libGoogleToolboxForMac.a(GTMLogger.o)
Sale Ching/Plugins/cordova-plugin-firebase/GoogleToolboxForMac.framework/GoogleToolboxForMac(GTMLogger_1d87861920ce748f18c427633f13fd22.o)
duplicate symbol _OBJC_IVAR_$_GPBFloatArray._capacity in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/Protobuf/libProtobuf.a(GPBArray.o)
Sale Ching/Plugins/cordova-plugin-firebase/Protobuf.framework/Protobuf(GPBArray_9c18dd0099bac64399d692ec28726322.o)
duplicate symbol _OBJC_IVAR_$_GPBEnumArray._capacity in:
/Users/uvinduchandrasiri/Library/Developer/Xcode/DerivedData/Sale_Ching-fmystclqwodflqflbkuaoyjyhfbc/Build/Products/Debug-iphonesimulator/Protobuf/libProtobuf.a(GPBArray.o)
duplicate symbols for architecture x86_64
Best Answer-推荐答案 strong>
架构 x86_64 的重复符号
这意味着您已经加载了两次相同的函数。由于从其他链接器标志中删除 -ObjC 后问题消失,这意味着此选项导致函数加载两次:
来自技术问答
This flag causes the linker to load every object file in the library
that defines an Objective-C class or category. While this option will
typically result in a larger executable (due to additional object code
loaded into the application), it will allow the successful creation of
effective Objective-C static libraries that contain categories on
existing classes.
https://developer.apple.com/library/content/qa/qa1490/_index.html
请关注 link更多详情
关于ios - 在 ionic 中构建 IOS 应用程序时出现架构 x86_64 错误的重复符号,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/48005676/
|