• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ios - 在 ionic 中构建 IOS 应用程序时出现架构 x86_64 错误的重复符号

[复制链接]
菜鸟教程小白 发表于 2022-12-13 03:51:48 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我构建了一个 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-推荐答案


架构 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/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap