Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not build Objective-C module 'Firebase'

I am getting this error for import Firebase:

Could not build Objective-C module 'Firebase'

Xcode also complains about FirebaseAnalytics saying

'FirebaseAnalytics/FirebaseAnalytics.h' file not found.

My project used to build just fine until I updated to swift 4.

I am using the latest version of Firebase via Cocoapods version 1.4.0 beta 2.

like image 250
swiftydev Avatar asked Mar 04 '26 19:03

swiftydev


1 Answers

I just had the same issue. What I had to do was:

  • Close Xcode
  • Restart Xcode and made sure I opened the .xcworkspace project file.
  • Ran a Build on the project.

After that I had no more Firebase error messages.

like image 129
LowDownDirtyShame Avatar answered Mar 06 '26 19:03

LowDownDirtyShame