Could not build Objective-C module 'Firebase'

Hi Everyone,

Can someone help me out with this?

When I compile the application I get an error equal to this: Could not build Objective-C module 'Firebase'

This error appears in "Import Firebase" of my file "ViewController.swift".

Answered by Faycel_TUN_2020 in 404299022

There is only one way to solve this issue.

  1. Quit Xcode.
  2. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData
  3. Delete ProjectName.xcworkspace
  4. Delete Podfile.lock file and Pods folder
  5. Run pod install.
  6. Open the newly created ProjectName.xcworkspace file and build.
Accepted Answer

There is only one way to solve this issue.

  1. Quit Xcode.
  2. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData
  3. Delete ProjectName.xcworkspace
  4. Delete Podfile.lock file and Pods folder
  5. Run pod install.
  6. Open the newly created ProjectName.xcworkspace file and build.
31
This solution works great!
Thank you so much!
Why does this happen? It's so annoying having to completely re-integrate cocoapods all the time
Saved my day, Thanks ...
People are missing this step here "This creates an .xcworkspace file for your app. Use this file for all future development on your application"

Stop using the workspace that you originally created. Close your editor, and open the one that its created after you run pod install. No need to do anything else

I was opening .xcodeproj instead of .xcworkspace

Could not build Objective-C module 'Firebase'
 
 
Q