How to Fix Could not build Objective-C module ‘Firebase’

The problem: When I tried to compile and build an app in Xcode, I received this error “Could not build Objective-C module ‘Firebase’

Is there a solution? Yes!

This error occurs when clicking “Import Firebase” for the ViewController.swift file.

  1. Quit your Xcode program.
  2. Go to ~/Library/Developer/Xcode/DerivedData.
  3. Delete .xcworkspace.
  4. Delete Podfile.lock file and Pods folder.
  5. Run pod install.
  6. You should have a new project name in .xcworkspace. Open the file and build.

Credit to Faycel_TUN_2020 for reporting this problem and also sharing the solution.

Leave a Comment

Cydia Geeks