React-native-firebase RNFirebaseAuth.m compilation issue

During build process below error.

▸ Compiling RNFirebaseAuth.m /Users/distiller/hellocrowd/node_modules/react-native-firebase/ios/RNFirebase/auth/RNFirebaseAuth.m:1184:36: no known class method for selector ‘credentialWithProviderID:IDToken:rawNonce:’ credential = [FIROAuthProvider credentialWithProviderID:@“apple.com” IDToken:authToken rawNonce:authTokenSecret];

It’s working locally in machine with no error.

react-native-firebase: 5.5.6
In pod file: pod ‘Firebase/Auth’, ‘~> 6.10.0’