Title: @clerk/expo: add a googleSignIn opt-out flag (ClerkGoogleSignIn pod is unconditionally linked) · Issue #8975 · clerk/javascript · GitHub
Open Graph Title: @clerk/expo: add a googleSignIn opt-out flag (ClerkGoogleSignIn pod is unconditionally linked) · Issue #8975 · clerk/javascript
X Title: @clerk/expo: add a googleSignIn opt-out flag (ClerkGoogleSignIn pod is unconditionally linked) · Issue #8975 · clerk/javascript
Description: Summary @clerk/expo ships a separate ClerkGoogleSignIn.podspec that hard-declares s.dependency 'GoogleSignIn', '~> 9.0'. Because Expo autolinking discovers all podspecs in @clerk/expo/ios/, the Google Sign-In native module — and its tran...
Open Graph Description: Summary @clerk/expo ships a separate ClerkGoogleSignIn.podspec that hard-declares s.dependency 'GoogleSignIn', '~> 9.0'. Because Expo autolinking discovers all podspecs in @clerk/expo/ios/, the Goo...
X Description: Summary @clerk/expo ships a separate ClerkGoogleSignIn.podspec that hard-declares s.dependency 'GoogleSignIn', '~> 9.0'. Because Expo autolinking discovers all podspecs in @clerk...
Opengraph URL: https://github.com/clerk/javascript/issues/8975
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@clerk/expo: add a googleSignIn opt-out flag (ClerkGoogleSignIn pod is unconditionally linked)","articleBody":"### Summary\n\n`@clerk/expo` ships a separate `ClerkGoogleSignIn.podspec` that hard-declares `s.dependency 'GoogleSignIn', '~> 9.0'`. Because Expo autolinking discovers **all** podspecs in `@clerk/expo/ios/`, the Google Sign-In native module — and its transitive chain `GoogleSignIn → AppCheckCore → GoogleUtilities + RecaptchaInterop` — is compiled into every iOS build, even for apps that never use Google sign-in.\n\nThe config plugin (`@clerk/expo/app.plugin.js`) gates `appleSignIn` (`withClerkExpo(config, { appleSignIn })`) and other features, but provides **no equivalent flag to disable Google sign-in**. Its Google logic only adds an Info.plist URL scheme when `EXPO_PUBLIC_CLERK_GOOGLE_IOS_URL_SCHEME` is set; the native module/pod itself is always linked.\n\n### Why this matters\n\n`AppCheckCore` is a Swift pod depending on `GoogleUtilities` and `RecaptchaInterop`, which don't define modules. With static linking (the Expo SDK 55 default) `pod install` fails:\n\n```\nThe Swift pod `AppCheckCore` depends upon `GoogleUtilities` and `RecaptchaInterop`,\nwhich do not define modules. To opt into those targets generating module maps ...\nyou may set `use_modular_headers!` globally, or specify `:modular_headers => true`\nfor particular dependencies.\n```\n\nConsumers who don't use Google sign-in are forced to either add `expo-build-properties` `modular_headers` workarounds or carry unused SDKs (extra binary size, an extra third-party SDK in the supply chain, and a higher iOS deployment floor).\n\n### Request\n\nAdd a `googleSignIn` prop to the config plugin, symmetric with `appleSignIn`, e.g.:\n\n```js\n[\n \"@clerk/expo\",\n { \"appleSignIn\": false, \"googleSignIn\": false }\n]\n```\n\nWhen `googleSignIn: false`, exclude `ClerkGoogleSignIn` (and therefore the `GoogleSignIn` pod chain) from autolinking on iOS, so apps not using Google sign-in don't compile or ship it.\n\n### Environment\n\n- `@clerk/expo` 3.2.14\n- Expo SDK 55 / React Native 0.83 (New Architecture, static linking)\n\n### Current workaround\n\n```js\n[\n \"expo-build-properties\",\n { \"ios\": { \"extraPods\": [\n { \"name\": \"GoogleUtilities\", \"modular_headers\": true },\n { \"name\": \"RecaptchaInterop\", \"modular_headers\": true }\n ] } }\n]\n```\n\nThis makes the build pass but still compiles and ships the unused Google Sign-In SDK.","author":{"url":"https://github.com/MrJune15","@type":"Person","name":"MrJune15"},"datePublished":"2026-06-24T11:35:30Z","url":"https://github.com/clerk/javascript/issues/8975"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6b25b3d8-b25e-3109-4860-c3d735b00dd4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E87A:277BD5:1224F83:18D0BA4:6AFB6C94 |
| html-safe-nonce | 5550c4531e4a97351694dc661ff944d9824c1e09bdc526da256a4b57adf4c0d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODdBOjI3N0JENToxMjI0RjgzOjE4RDBCQTQ6NkFGQjZDOTQiLCJ2aXNpdG9yX2lkIjoiMTk4NTA2NTg0OTQyOTEyNjI5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e6ef79f3e894a6d51a4edfce72a6f7c47a6a236ae7b6bb735990ec2e250c88bf |
| hovercard-subject-tag | issue:4734419387 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clerk/javascript/8975/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a5cf5efc451c05a93cdaed02d6a021a4a52981200a716011fbb6d5808365fb5/clerk/javascript/issues/8975 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a5cf5efc451c05a93cdaed02d6a021a4a52981200a716011fbb6d5808365fb5/clerk/javascript/issues/8975 |
| og:image:alt | Summary @clerk/expo ships a separate ClerkGoogleSignIn.podspec that hard-declares s.dependency 'GoogleSignIn', '~> 9.0'. Because Expo autolinking discovers all podspecs in @clerk/expo/ios/, the Goo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MrJune15 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/clerk/javascript git https://github.com/clerk/javascript.git |
| octolytics-dimension-user_id | 49538330 |
| octolytics-dimension-user_login | clerk |
| octolytics-dimension-repository_id | 438331492 |
| octolytics-dimension-repository_nwo | clerk/javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 438331492 |
| octolytics-dimension-repository_network_root_nwo | clerk/javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width