Search code examples
iosfirebasesdwebimagefirebase-storagefirebaseui

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


I am trying to add FirebaseUI/Storage pod to iOS App which is throwing the following linker error:

framework not found SDWebImage for architecture x86_64

I have tried adding SDWebImage independently and it works but as soon as I add FirebaseUI/Storage pod, it throws the above error.

Any ideas what could be causing this?

This is what my Podfile looks like:

target 'myApp' do

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

pod 'FirebaseUI/Storage'

pod 'SDWebImage'
pod 'MMDrawerController'

end

Solution

  • I had this exact same problem. I seem to have fixed it by changing my pod file to...

    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
    

    A few things to note:

    1. I turned on use_frameworks even though I am using Objective C
    2. I turned off my Firebase pod calls - they are pulled in automatically by FirebaseUI