【问题标题】:Error (Xcode): redefinition of module 'Firebase' etc flutter [duplicate]错误(Xcode):重新定义模块 \'Firebase\' 等 flutter [重复]
【发布时间】:2023-02-13 19:14:56
【问题描述】:

我试图在 iOS(模拟器和真实设备)上运行该应用程序好几天了,但我一直收到此错误我尝试删除所有 pod 文件夹/文件并重新安装 pod - 缓存修复 - 更新但它不起作用

Could not build the precompiled application for the device.
Error (Xcode): redefinition of module 'Firebase'
/Users/yomna/apps/Intros/intros_dating/ios/Pods/Firebase/CoreOnly/Sources/module.modulemap:0:7

Error (Xcode): could not build module 'ObjectiveC'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/usr/include/os/object.h:113:8

Error (Xcode): could not build module 'os_object'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/usr/include/dispatch/dispatch.h:62:9

Error (Xcode): could not build module 'os_object'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/usr/include/os/workgroup_base.h:18:9

Error (Xcode): could not build module 'Dispatch'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:19:9

Error (Xcode): could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:5:9

Error (Xcode): could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:9

Error (Xcode): could not build module 'CoreFoundation'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:17:9

【问题讨论】:

    标签: ios xcode flutter firebase


    【解决方案1】:

    这很简单。您必须从 Runner-> Packages installer-> firebase-ios-sdk 中删除 firebase-ios-sdk。

    【讨论】:

    • 请不要发布仅指向不同 Stack Overflow 问题的答案。一旦您获得足够的声誉,您就可以离开 cmets。在此之前,请将您与网站的互动限制在您当前权限级别允许的互动范围内,即提出问题、发布实际答案以及建议对帖子进行编辑。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-29
    • 2012-07-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多