将FirebaseUI/Storage pod添加到iOS App会导致找不到架构x86_64的SDWebImage框架

Vib*_*yal 5 ios sdwebimage firebase firebaseui firebase-storage

我正在尝试将FirebaseUI/Storage pod添加到iOS App,这会引发以下链接器错误:

框架找不到架构x86_64的SDWebImage

我已经尝试独立添加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
Run Code Online (Sandbox Code Playgroud)

小智 6

我有同样的问题.我似乎通过将我的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
Run Code Online (Sandbox Code Playgroud)

有几点需要注意:

  1. 即使我使用Objective C,我也打开了use_frameworks
  2. 我关闭了我的Firebase pod电话 - 它们由FirebaseUI自动拉入

  • 你救了我的一天.如果您取消注释'use_frameworks!',它就有效 (2认同)