CLIENT_ID and REVERSED_CLIENT_ID are not in GoogleService-Info.plist
CLIENT_ID and REVERSED_CLIENT_ID are missing from GoogleService-Info.plistShort answer
Firebase's Google sign-in steps enable the Google provider first and only then have you download a new GoogleService-Info.plist. Do it in that order and replace the old file. Then copy CLIENT_ID and REVERSED_CLIENT_ID into ios/Runner/Info.plist, which is where the google_sign_in package reads them.
Fix it fast
1Find out which cause you have
Search the plist your iOS app actually uses for the two keys. No output means the file you hold has none of them.
grep -n -A1 -E "CLIENT_ID|REVERSED_CLIENT_ID" ios/Runner/GoogleService-Info.plist2Match what you see, then jump to its fix
- 1
grep finds neither key, and Google is not enabled (or was enabled later) under Authentication, Sign-in method in the Firebase consoleThe plist was downloaded before Google sign-in was enabledFix - 2
The plist has CLIENT_ID and REVERSED_CLIENT_ID, yet Google sign-in on iOS still does not startThe keys exist, but they were never copied into Info.plistFix
- 1
What does the error look like?
CLIENT_ID and REVERSED_CLIENT_ID are missing from GoogleService-Info.plistANDROID_CLIENT_ID is missing from GoogleService-Info.plist
Cause 1 of 2
The plist was downloaded before Google sign-in was enabled
1Check
Open the Firebase console, go to Authentication and then the Sign-in method tab, and see whether the Google provider is on. Firebase's own steps put the order as: enable the provider first, then download a new copy of GoogleService-Info.plist.
grep -c "REVERSED_CLIENT_ID" ios/Runner/GoogleService-Info.plist2Fix
Enable the Google provider and save. Then download a new copy of GoogleService-Info.plist and overwrite the old file.
# after downloading, replace the file in the Runner folder
cp ~/Downloads/GoogleService-Info.plist ios/Runner/GoogleService-Info.plist3Verify
The grep from the first step now prints both keys.
grep -n -A1 -E "CLIENT_ID|REVERSED_CLIENT_ID" ios/Runner/GoogleService-Info.plistConfirmed by firebase.google.com
Cause 2 of 2
The keys exist, but they were never copied into Info.plist
1Check
The google_sign_in iOS setup reads the client ID from the GIDClientID key and the reversed ID from a URL scheme, both in ios/Runner/Info.plist. Check that those entries exist.
grep -n -A12 -E "GIDClientID|CFBundleURLTypes" ios/Runner/Info.plist2Fix
Copy the value of CLIENT_ID into GIDClientID, and the value of REVERSED_CLIENT_ID into a URL scheme, as the package's iOS integration steps describe. The package also lets you pass clientId in Dart instead of GIDClientID, but the URL scheme is still needed.
<key>GIDClientID</key>
<string>CLIENT_ID value from the plist</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>REVERSED_CLIENT_ID value from the plist</string>
</array>
</dict>
</array>3Verify
Rebuild the iOS app and start the Google sign-in flow on a simulator or device.
flutter runConfirmed by pub.dev
How do I stop it coming back?
- Enable every sign-in provider in the Firebase console first, then download GoogleService-Info.plist; download it again whenever you enable a new provider.
- Keep one plist per Firebase iOS app and know which folder it lives in, so you do not edit a copy the Runner target ignores.
- Write down in the repo which keys go from the plist into Info.plist, so a new team member does not hunt for them.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine built on the same technologies:
- TaxiDexMy own multi-tenant taxi dispatch SaaS: API, dispatcher portal, driver and passenger apps, and the servers underneath.
- QistLockA NestJS and React SaaS driving an Android Device Owner agent that locks financed phones when payments lapse.
- Dispatch ProA real-time logistics platform: Flutter apps, Spring Boot services and a Kafka event pipeline on AWS.
Related fixes
Mobile apps
Firebase phone sign-in on iOS stops with 'Please register custom URL scheme'
Please register custom URL scheme com.googleusercontent.apps.123456789-abc in the app's Info.plist file.
Phone sign-in on iOS can open a reCAPTCHA page, and Firebase needs a URL scheme in Info.plist to return to your app.
2 causes, each with a fixMobile apps
Xcode cannot find GoogleService-Info.plist for the Runner target
error: Build input file cannot be found: '/Users/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')
Xcode's project file lists GoogleService-Info.plist as an input, but nothing exists at the path it records.
3 causes, each with a fixMobile apps
Flutter Image.network shows nothing or throws when the image fails
EXCEPTION: resolving an image codec
Image.network throws an exception that goes to FlutterError.onError when a download or decode fails, so a 404 leaves a red screen or an empty box.
3 causes, each with a fixMobile apps
image_picker closes the app or returns nothing after choosing a photo
With launchMode singleInstance the picker always returns RESULT_CANCELED
On Android the system can kill MainActivity while the picker is open, so the app restarts and the result never arrives.
3 causes, each with a fixMobile apps
Scheduled flutter_local_notifications never appear when the app is closed
zonedSchedule does nothing, with no error shown
Local notifications are scheduled with the system, so they should fire while the app is closed.
5 causes, each with a fixMobile apps
flutter_local_notifications throws ArgumentError: iOS settings must be set
Android settings must be set when targeting Android platform.
The plugin's initialize call checks that InitializationSettings holds settings for the platform the app is running on.
3 causes, each with a fix