React-native-firebase: No known class method for selector 'credentialWithProviderID:IDToken:rawNonce

Created on 12 Dec 2019  路  7Comments  路  Source: invertase/react-native-firebase

After integrating Firebase Authentication i am unable to run the app on ios

Screenshot 2019-12-12 at 6 03 26 PM

Screenshot 2019-12-12 at 6 04 29 PM

No Template

Most helpful comment

You skipped the template.
Your pods are out of date. Use 6.13.0

All 7 comments

You skipped the template.
Your pods are out of date. Use 6.13.0

@mikehardy FYI the docs are out of date. The v5.x.x docs say to use pod 'Firebase/Auth', '~> 6.3.0'

https://rnfirebase.io/docs/v5.x.x/auth/ios

The versions move quickly and I was busy implementing the apple sign-in vs updating all the docs - but you can help, there's an edit button top-right of every page on the docs site

compatibility matrix says 6.13+ at least, so it's in one spot but not everywhere

@mikehardy thanks, it's working when changed with 6.13.0

Official Documentation Page Link:
https://v5.rnfirebase.io/docs/v5.x.x/auth/ios

if you will not use apple as sign-in method you can easily comment this condition
in RNFirebaseAuth.m file where error occurred

// else if ([provider compare:@"apple.com" options:NSCaseInsensitiveSearch] == NSOrderedSame) { // credential = [FIROAuthProvider credentialWithProviderID:@"apple.com" IDToken:authToken rawNonce:authTokenSecret]; // }

@MhamedRamadan10 if you are on a firebase-ios-sdk version so old it does not have that method, you are most likely not compatible with ios14 and may not even be compatible with ios13. You should update.

Was this page helpful?
0 / 5 - 0 ratings