Skip to content

feat: support CocoaPods alongside SwiftPM - #2054

Open
mrousavy wants to merge 3 commits into
v1from
feat/v1-cocoapods
Open

mrousavy wants to merge 3 commits into
v1from
feat/v1-cocoapods

Conversation

@mrousavy

@mrousavy mrousavy commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

CocoaPods apps can build v1 without migrating React Native to SwiftPM. The runtime and Nitrogen-generated libraries support both package managers using the same native sources.

Uses companion pods to preserve the Swift/C++ module boundaries, with Podfile hooks, SimdUTF packaging, updated templates/docs, and Debug/Release CI. Includes TODOs to remove CocoaPods, its CI job, packaging and docs once React Native defaults to Swift Package Manager. The header-order workaround links swiftlang/swift#94116.

Validated locally with Xcode 27.2 / Swift 6.4.2:

  • CocoaPods example app builds in Debug and Release.
  • Cross-module static-framework consumer builds for arm64 and x86_64 simulators.
  • Existing SwiftPM example app builds in Debug.
  • Workspace typechecks, Nitrogen regeneration, Ruby integration checks, docs build, npm packaging, formatting, and changed TypeScript lint.

Vendored SDKs need a separate pod dependency, as documented.

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
nitro-docs Ready Ready Preview Nov 9, 2026 9:11pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — e2113d26 Deployed Nov 9, 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