有没有人可以帮助我完成我的 Swift 项目?我遇到了 Firebase 错误

Is there anyone who can help me with my Swift Project? Ive got an Firebase error

如果我想在 Xcode 中构建我的旧 Projekt,我会遇到以下错误:

/Users/xxx/Desktop/development/xxx/ios/Pods/Firebase/CoreOnly/Sources/Firebase.h:15:9: 'FirebaseCore/FirebaseCore.h' file not found /Users/xxx/Desktop/development/xxx/ios/Runner/AppDelegate.swift:17:8: Could not build Objective-C module 'Firebase'

网上说,我需要:

  1. 退出Xcode
  2. 从 Xcode
  3. 中删除临时数据
  4. 删除 Pods 文件夹,Podfile.lock 和 project.xcworkspace
  5. pod 安装
  6. 运行 Xcode

但是这个教程对我不起作用.. 有谁有其他解决方案吗?

非常感谢!

shift + command + k

您尝试过清理构建吗? 因为我在使用firebase时经常遇到这个问题。

有时它会通过重复执行此步骤来修复自身 clean build -> exit xcode -> 运行 xcode -> try different simulator -> clean ,

我在“$ pod update”之后遇到了同样的问题,然后我做了:

1. Shift + alt + k at Xcode (clean).
2. Closed Xcode.
3. $ pod deintegrate
4. Deleted .xcworkspace (pay attention to not delete wrong file !!!)
5. $ pod repo update
6. $ pod install

它又回来了。