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

I am trying to add a FirebaseUI / Storage pod to an iOS application that throws the following linker error:

SDWebImage not found for x86_64 architecture

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

Any ideas what could be causing this?

Here's what my subfile looks like:

target 'myApp' do pod 'Firebase/Core' pod 'Firebase/Database' pod 'Firebase/Storage' pod 'FirebaseUI/Storage' pod 'SDWebImage' pod 'MMDrawerController' end 
+5
source share
1 answer

I had the same problem. I seem to have fixed this 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 notes:

  • I have included use_framework, although I am using Objective C
  • I disabled my Firebase pod calls - they are automatically inserted by FirebaseUI
+6
source

Source: https://habr.com/ru/post/1260749/


All Articles