Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode build error from Firebase pod: error: no visible @interface for 'FIRAuth'

I just pulled from a working version and cannot build my project due to what looks like a cocopods error

What I've Tried

  • I followed this tutorial which usually seems to work and it did not work: Could not build Objective-C module 'Firebase'

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

I also udpated jsut the Firebase/Firestore pods with pod update Firebase/Firestore
cloud_firestore giving errors on IOS Simulator

  • I also tried manually updating the Firebase pod version with pod 'Firebase/Core', '~>5.20.2'
    Then pod install This crashed during pod install.

  • I also just tried pod update this did not resolve anything.

  • I also cleaned by Xcode build folder and rebuild the project after updating the pods and still received the same error.

- (void)useEmulatorWithHost:(NSString *)host port:(NSInteger)port {
  [self.auth useEmulatorWithHost:host port:port];
  self.emulatorEnabled = YES;
}

Error:

error: no visible @interface for 'FIRAuth' declares the selector 'useEmulatorWithHost:port:'
  [self.auth useEmulatorWithHost:host port:port];
   ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

like image 877
Garrett Avatar asked Jan 17 '26 12:01

Garrett


1 Answers

  • Delete Pods folder from Project by going into Folder explorer
  • Clear Project in Xcode
  • pod deintegrate
  • pod init
  • pod cache clean --all
  • pod update
like image 79
Vivek Gupta Avatar answered Jan 20 '26 09:01

Vivek Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!