Error: Could not build Objective-C module 'Firebase'

Sebastián Varella Gmz picture Sebastián Varella Gmz · Jan 18, 2017 · Viewed 80.6k times · Source

When I compile the application I get an error equal to this:

Could not build Objective-C module 'Firebase'

This error appear in import Firebase of my file swift.

Answer

Dimitris Bouzikas picture Dimitris Bouzikas · Jun 11, 2017

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.