Repository navigation
Conversation
The iOS CI jobs that build RNTester, HelloWorld and the template app used by the Maestro end-to-end tests still built them with CocoaPods. SwiftPM is becoming the default way to build React Native apps on iOS, so these jobs now build with SwiftPM. - HelloWorld is converted to SwiftPM and checked in. Its Podfile, workspace and Ruby files are removed. `yarn bootstrap ios` and `yarn build ios` use SwiftPM. - RNTester stays a CocoaPods project in git, so developers keep building React Native from source. CI converts it to SwiftPM before each build. The app uploaded for the Maestro tests keeps its name. - The template app is converted to SwiftPM in its build job. - A new action, setup-spm-artifacts, gives every job the prebuilt frameworks from the same CI run. - test_ios_rntester now blocks a merge. - The CocoaPods-only jobs (Ruby 3.2, dynamic frameworks, use_frameworks) and the separate SwiftPM workflows for RNTester and HelloWorld are removed. Verify locally: `yarn bootstrap ios && yarn build ios` in private/helloworld prints BUILD SUCCEEDED.
`spm add --deintegrate` keeps the Podfile since #59368, so the RNTester check now looks for CocoaPods references in RNTesterPods.xcodeproj, as the SwiftPM workflows on main do.
chrfalch
force-pushed
the
chrfalch/spm-ci-default
branch
from
November 3, 2026 11:58
14f423f to
54ca50f
Compare
chrfalch
marked this pull request as ready for review
November 3, 2026 16:13
Collaborator
Author
|
@cipolleschi This PR changes the iOS CI jobs to build our test apps with SwiftPM instead of CocoaPods. SwiftPM becomes the default in 0.89, so CI should test that setup. The PR is ready for your review. What changes:
Things that need your attention:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
The iOS CI jobs that build our test apps still use CocoaPods: RNTester, HelloWorld, and the template app that the Maestro end-to-end tests run. SwiftPM is becoming the default way to build React Native apps on iOS, so CI should build these apps with SwiftPM.
This PR changes those jobs to SwiftPM:
yarn bootstrap iosandyarn build iosnow use SwiftPM.spm scaffold, thenspm add --deintegrate).RNTesterApp-NewArch-{Debug,Release}, so the Maestro jobs do not change.setup-spm-artifacts, gives each job the prebuilt frameworks from the same CI run.test_ios_rntesternow blocks a merge. It replaces the blockingtest_ios_spm_rntesterjob.use_frameworksmatrix axis, andtest-ios-spm-rntester.yml/test-ios-spm-helloworld.yml(the jobs above now cover them).Things reviewers should know:
test_ios_rntester (Debug, false)becomestest_ios_rntester (Debug). If branch protection lists the old names, it must be updated.Changelog:
[INTERNAL] [CHANGED] - Build the iOS test apps with SwiftPM in CI
Test Plan:
Local, Xcode, iPhone simulator:
spm scaffold,spm add --deintegrate, thenxcodebuild -project RNTesterPods.xcodeproj -scheme RNTester. Debug and Release: BUILD SUCCEEDED. The embedded React.framework has the matching flavor (nm | grep getDebugProps: 81 symbols in Debug, 0 in Release).yarn bootstrap ios && yarn build iosinprivate/helloworld: BUILD SUCCEEDED.yarn bundle ios: passes. Before this change, all three commands failed on the converted project ("No Podfile found").yarn flow-check: 0 errors.npx eslint --max-warnings 0on the changed JavaScript files: clean.Not run locally: the template-app job and
test-ios-spm-newapp.yml. The CI run on this PR tests them.