将 FirebaseUI/Storage pod 添加到 iOS 应用程序抛出框架未找到架构的 SDWebImage x86_64

Adding FirebaseUI/Storage pod to iOS App throws framework not found SDWebImage for architecture x86_64

我正在尝试将 FirebaseUI/Storage pod 添加到 iOS 应用程序,该应用程序抛出以下链接器错误:

framework not found SDWebImage for architecture x86_64

我试过单独添加 SDWebImage 并且它有效,但是一旦我添加 FirebaseUI/Storage pod,它就会抛出上述错误。

知道是什么原因造成的吗?

这是我的 Podfile 的样子:

target 'myApp' do

pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Storage'

pod 'FirebaseUI/Storage'

pod 'SDWebImage'
pod 'MMDrawerController'

end

我遇到了完全相同的问题。我似乎已经通过将我的 pod 文件更改为...

来修复它
target 'MyApp' do
  # Uncomment this line if you're using Swift or would like to use dynamic frameworks
  use_frameworks!

  # Pods for MyApp
  pod 'SDWebImage', '~>3.8'
  # pod 'Firebase/Core'
  pod 'FirebaseUI', '~> 1.0'

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'MyAppUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

注意几点:

  1. 我打开了 use_frameworks,尽管我正在使用 Objective C
  2. 我关闭了我的 Firebase pod 调用 - 它们由 FirebaseUI 自动引入

似乎没有明确的文档说明如果还包含其他单独的 Firebase/... pods.[=10,则应包含哪些 pods 以仅启用 FirebaseUI/Storage 功能=]

我需要删除所有 pods 并在没有 FirebaseUI/Storage 的情况下安装它们,因为它欺骗了几个 类,一旦我删除了 [FirebaseUI/Storage] pod,这些 类 就没有被删除.