Skip to content

fix(expo-biometrics,expo-google-signin): Ship a Package.swift for Expo SwiftPM builds - #11140

Open
wobsoriano wants to merge 2 commits into
mainfrom
rob/expo-spm-biometrics-google-signin
Open

wobsoriano wants to merge 2 commits into
mainfrom
rob/expo-spm-biometrics-google-signin

Conversation

@wobsoriano

Copy link
Copy Markdown
Member

Description

Follow-up to #11139. With experiments.swiftPackageManager turned on in Expo SDK 58, two more Clerk Expo packages break iOS builds. @clerk/expo-google-signin fails to compile with Unable to resolve module dependency: 'GoogleSignIn', because the GoogleSignIn dependency only lives in its podspec. @clerk/expo-biometrics stops SwiftPM setup for the whole app, because Expo won't read the s.frameworks linkage in its podspec.

Both packages now ship a Package.swift that Expo builds as is. The google-signin manifest depends on Google's GoogleSignIn-iOS package at ~> 9.0, matching the podspec. The biometrics manifest declares CryptoKit, LocalAuthentication and Security as linked frameworks, and a test keeps that list in sync with the podspec. CocoaPods builds don't change. @clerk/expo has no native iOS code and @clerk/expo-passkeys already builds, so neither needs a manifest.

🤖 Generated with Claude under Rob's supervision.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Dec 5, 2026 10:32pm UTC
mosaic-docs Ready Ready Preview Dec 5, 2026 10:32pm UTC
swingset Ready Ready Preview Dec 5, 2026 10:32pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c1f5cd2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/expo-biometrics Patch
@clerk/expo-google-signin Patch
@clerk/expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The biometrics and Google Sign-In Expo packages add Swift Package Manager manifests and include them in their published files. The biometrics package also adds tests that check manifest publication and compare framework declarations with its podspec. Both packages add Swift Package Manager ignore rules and patch changesets.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: mikepitre

Merge Risk: Minimal · up to c1f5c

This adds Swift Package Manager manifests so the iOS modules can build when Expo's SwiftPM support is enabled; CocoaPods builds are unchanged. No concrete merge-blocking risk was found. The SwiftPM build itself was not run in this review.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two packages it changes (@clerk/expo-biometrics and @clerk/expo-google-signin) and the main change, which is shipping a Package.swift for Expo SwiftPM builds. The raw summary confi…
Description check Passed The description explains the problem (Expo SDK 58 with experiments.swiftPackageManager breaking iOS builds for two Clerk Expo packages), and states that both packages now ship a Package.swift. It also…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two packages it changes (@clerk/expo-biometrics and @clerk/expo-google-signin) and the main change, which is shipping a Package.swift for Expo SwiftPM builds. The raw summary confirms both packages add a Package.swift manifest, so the title matches the changeset.

Full details: Description check

Explanation

The description explains the problem (Expo SDK 58 with experiments.swiftPackageManager breaking iOS builds for two Clerk Expo packages), and states that both packages now ship a Package.swift. It also covers the GoogleSignIn dependency, the biometrics framework list, the test that keeps the list in sync with the podspec, and the packages left unchanged. This matches the changeset.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: This review skipped 6 repositories. Cross-repository analysis may be incomplete. Check linked repository access and settings.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 204be64 and c1f5cd2.

Files selected for processing: 9

  • .changeset/expo-biometrics-spm-manifest.md
  • .changeset/expo-google-signin-spm-manifest.md
  • packages/expo-biometrics/.gitignore
  • packages/expo-biometrics/Package.swift
  • packages/expo-biometrics/package.json
  • packages/expo-biometrics/src/__tests__/iosManifests.test.ts
  • packages/expo-google-signin/.gitignore
  • packages/expo-google-signin/Package.swift
  • packages/expo-google-signin/package.json
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@pkg-pr-new

pkg-pr-new Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@11140

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@11140

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@11140

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@11140

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@11140

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@11140

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@11140

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@11140

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@11140

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@11140

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@11140

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@11140

@clerk/express

npm i https://pkg.pr.new/@clerk/express@11140

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@11140

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@11140

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@11140

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@11140

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@11140

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@11140

@clerk/react

npm i https://pkg.pr.new/@clerk/react@11140

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@11140

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@11140

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@11140

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@11140

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@11140

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@11140

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@11140

commit: c1f5cd2

@wobsoriano
wobsoriano marked this pull request as ready for review December 5, 2026 22:42
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-12-05T22:45:02.321Z

Summary

Metric Count
Packages analyzed 20
Packages with changes 0
🔴 Breaking changes 0
🟡 Non-breaking changes 0
🟢 Additions 0

No API Changes Detected

All packages have stable APIs with no detected changes.


Report generated by Break Check

Last ran on c1f5cd2.

@blacksmith-sh

blacksmith-sh Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Matches SwiftPM resolves both new manifests

Head: SwiftPM resolves GoogleSignIn-iOS 9.2.0 with the GoogleSignIn product and lists CryptoKit, LocalAuthentication, Security for biometrics; base has no Package.swift to load.

Merge-base

SwiftPM manifest load

This PR c1f5cd25

SwiftPM manifest load

Also checked · 2 match · 1 not run

Blocked iOS app builds with Expo SwiftPM enabled · Blocked
Matches Published tarballs include Package.swift · Narrowed from "pnpm pack of @⁠clerk/expo-biometrics and @⁠clerk/expo-google-signin puts Package.swift at the package root, so Expo finds it in an installed app; the merge-base tarballs have none."
Matches Test catches framework drift from podspec

Note

Proof planned 1 claim but was not able to run it:

Compiling an Expo iOS app needs Xcode on macOS; the Linux sandbox can only load and resolve the manifests with SwiftPM

  • iOS app builds with Expo SwiftPM enabled

Proof on c1f5cd25 · not run: Xcode iOS build (no macOS or Xcode in the Linux sandbox) · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

This branch was successfully deployed

2 active deployments
Preview – swingset — c1f5cd25 Deployed Dec 5, 2026 by vercel[bot]
Preview – clerk-js-sandbox — c1f5cd25 Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant