react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 877 forks source link

RNGoogleSignin: failed to determine clientID - GoogleService-Info.plist was not found and iosClientld was not provided. #1312

Open leoyin1127 opened 5 days ago

leoyin1127 commented 5 days ago

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-27 at 15 21 15

Expected Behavior

With no error while building?

Actual Behavior

I have already specified the path in the app.json and imported the file to the root, also with the correct configured clientID just copied from Firebase in my code, but this error exists. Can anyone please help me find out why?

Here are my configurations for app.json and webclientid:

"ios": { "bundleIdentifier": "xxxx", "supportsTablet": true, "buildNumber": "1", "googleServicesFile": "./GoogleService-Info.plist" }, "android": { "package": "xxxx", "googleServicesFile": "./google-services.json" },

useEffect(() => { GoogleSignin.configure({ webClientId: "93476975143-09ikj8c72gtt984oodnf3ngm3gq1ntm4.apps.googleusercontent.com", }); }, []);

Environment