Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages
Flutter and app store releases

CLIENT_ID and REVERSED_CLIENT_ID are not in GoogleService-Info.plist

ErrorCLIENT_ID and REVERSED_CLIENT_ID are missing from GoogleService-Info.plist

Short 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.

  • Applies to Flutter 3.3x, google_sign_in with google_sign_in_ios
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Fix it fast

  1. 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.plist
  2. 2Match what you see, then jump to its fix

    1. 1grep 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. 2The 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

What does the error look like?

  • CLIENT_ID and REVERSED_CLIENT_ID are missing from GoogleService-Info.plist
  • ANDROID_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.plist

2Fix

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.plist

3Verify

The grep from the first step now prints both keys.

grep -n -A1 -E "CLIENT_ID|REVERSED_CLIENT_ID" ios/Runner/GoogleService-Info.plist

Confirmed by firebase.google.com

Did this fix it?

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.plist

2Fix

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 run

Confirmed by pub.dev

Did this fix it?

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:

Related fixes

Mobile 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 fix

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.