使用 pod 安装 Firebase Storage 后,我在 Xcode 中遇到错误

I'm getting errors in Xcode after installing Firebase Storage using pods

提问人:anshul tanwar 提问时间:11/18/2023 最后编辑:HangarRashanshul tanwar 更新时间:11/18/2023 访问量:17

问:

我遇到的错误:

enter image description here

下面是我的 pod 文件:

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

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



# Pods for PingMe Up
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage' 
pod 'Firebase/Core'

# Google Sign In
pod 'GoogleSignIn'

pod 'MessageKit'
pod 'RealmSwift'
pod 'SDWebImage'


end

我已经尝试了所有方法(清理项目、重新启动我的 Mac 并重新启动 Xcode),但没有任何效果。

iOS Swift UIKIT Firebase-存储

评论

0赞 lorem ipsum 11/18/2023
如果可以的话,切换到 SPM,它具有更好的兼容性
0赞 Ben A. 11/20/2023
请不要发布代码或错误的图像。文本是首选,这样我们就可以尝试重现问题,而不必重新输入所有内容,并且您的问题可以被屏幕阅读器正确索引或阅读。

答:

0赞 Paul Beusterien 11/18/2023 #1

在 Podfile 中指定(或更高)。platform :ios, '11.0'

最新版本的 Firebase 不支持 CocoaPods 默认的 8.0,并且可能正在安装非常旧版本的 pod。