【问题标题】:Another 'FirebaseCore/FirebaseCore.h' file not found Question - SwiftUI找不到另一个“FirebaseCore/FirebaseCore.h”文件问题 - SwiftUI
【发布时间】:2021-09-14 21:25:22
【问题描述】:

更新编辑:构建将在真实设备上运行,但在模拟器上尝试时仍然出现这些错误。

我被困住了,想知道该怎么做。我已经在谷歌上搜索了 2 天,并尝试了我能找到的所有解决方案。一切正常,然后有一次我去运行我的应用程序,我说得到了

  • 找不到“FirebaseCore/FirebaseCore.h”文件

  • SignInWithAppleCoordinator.swift:13:8:无法构建 Objective-C 模块“Firebase”

错误。

我卡住了……

这是我的 pod 文件,你发现它有什么问题吗?请注意,在这一点上,一切都运行良好。

我使用的是 xcode 12.5,pod 版本 1.10.1。是的,我打开了工作区,但我已经清除、删除、重新安装了 pod,但无济于事。

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Draft Order' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Draft Order

   pod 'Firebase/Core'
   pod 'Firebase/Auth'
   pod 'Firebase/Analytics'
   pod 'Firebase/Firestore'
   pod 'FirebaseFirestoreSwift'
   pod 'Firebase/Messaging'

end

提前致谢。

【问题讨论】:

    标签: firebase swiftui cocoapods


    【解决方案1】:

    两个问题:

    【讨论】:

    • 试过了,取消注释并将平台更改为 ios 10 并添加了 pod 'FirebaseFirestoreSwift'、'8.2.0-beta' 仍然遇到同样的问题。
    • 您的环境可能存在异常情况。如果您可以分享一个可重现的示例,我会更深入地研究。
    【解决方案2】:

    在搞砸了几天之后,我唯一要做的就是使用 $ pod deintegrate 删除我的 pod。我删除了工作区和 pod 文件。然后通过swifts包依赖重新添加一切

    文件 → Swift 包 → 添加包依赖

    https://github.com/firebase/firebase-ios-sdk.git

    【讨论】:

      猜你喜欢
      • 2021-09-13
      • 2019-07-13
      • 2019-11-25
      • 1970-01-01
      • 2019-02-04
      • 2022-11-03
      • 2020-10-09
      • 2021-08-03
      相关资源
      最近更新 更多