2016-12-03 36 views
5

我想FirebaseUI /存儲艙添加到iOS應用,該應用被拋出下面的鏈接器錯誤:添加FirebaseUI /存儲莢iOS應用會因建築x86_64的框架沒有找到SDWebImage

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 
+0

介意分享一些更多信息(Podfile,'pod install'輸出,版本號等)? –

+0

您不應該需要第二個'SDWebImage',因爲它應該從'FirebaseUI/Storage'自動拉入。你使用的是什麼版本的CocoaPods?另外,這是Obj-C還是Swift?如果你需要它,你有'use_frameworks!'(正在使用Swift)。 –

+0

我正在使用最新版本的CocoaPods。這是Obj-C。 –

回答

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 

有幾件事情需要注意:

  1. 我打開use_frameworks即使我使用的Objective C的
  2. 我轉身關閉我的Firebase Pod呼叫 - 它們由FirebaseUI自動引入
+1

這似乎是CocoaPods中的一個問題。如果您省略'use_frameworks!!',則正確包含SDWebImage,但pod會添加鏈接器標誌,然後期望SDWebImage以框架形式出現。見https://github.com/firebase/FirebaseUI-iOS/issues/194 –

+2

你節省了我的一天。如果您取消註釋'use_frameworks!',它將起作用 – superpuccio