Firebase framework not found

别来无恙 提交于 2019-11-30 20:04:45

I know it sounds far fetch, but:

  1. Clean the project. Product -> Clean
  2. Restart XCode (not always needed)
  3. Run pod update & pod installfrom the project folder

Update: The Podfile should more like:

    use_frameworks!

    target 'Parti' do
      pod 'Firebase'
      pod 'Firebase/Storage'
      pod 'Firebase/Auth'
      pod 'Firebase/Database'
    end

    target 'PartiUITests' do
      pod 'Firebase'
      pod 'Firebase/Storage'
      pod 'Firebase/Auth'
      pod 'Firebase/Database'
    end

Make sure you have added $(inherited) in your Header Search Paths, Framework Search Paths and Library Search Paths for your project target.

Also make sure that in frameworks folder in your project file(Not in your Pods, click on the Project Name in the Project Navigator), the "libPods-YourProjectName.a" is not red. If yes, delete it and build again.

add $PROJECT_DIR/Pods (make it recursive)

to Framework search paths

for whatever reason only this helped me, maybe you too

Just found the answer. Seems like I had an old geofire version and the new one is not available as a Pod yet...

Github Issue link

Thank you for your answers guys.

Some hints :

  • Make sure that your Podfile is correct (did you forget to uncomment the use_frameworks! line ? Have you correctly added the pod ?)

  • Have you forgotten to run "pod install" ?

  • Have you tried cleaning the project and the build folder ?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!