Repository navigation
feat: support macOS, tvOS and visionOS - #1968
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
mrousavy
force-pushed
the
mrousavy/v1-apple-platforms
branch
from
October 22, 2026 16:09
a4372df to
317e08d
Compare
This was referenced Oct 22, 2026
mrousavy
force-pushed
the
mrousavy/v1-apple-platforms
branch
from
October 23, 2026 09:26
317e08d to
d0d9772
Compare
mrousavy
commented
Oct 23, 2026
Declare macOS 13, tvOS 16 and visionOS 1 next to iOS 16 in the react-native-nitro-modules and template manifests and podspecs, matching the iOS minimum's OS generation. Without a declaration, SwiftPM uses its own minimums, which are too old for v1's Swift and C++. String conversion checked only iOS 26 and macOS 26 before using `utf8Span`, so tvOS and visionOS failed to compile. The check now names all four platforms. CI keeps testing iOS only.
mrousavy
force-pushed
the
mrousavy/v1-apple-platforms
branch
from
October 23, 2026 11:16
3c46620 to
e077d0e
Compare
This branch was successfully 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.
First of six stacked PRs: #1968 (this one) → #1960 → #1969 → #1970 → #1971 → #1972.
Declare macOS 13, tvOS 16 and visionOS 1 next to iOS 16 in the
react-native-nitro-modulesand template manifests and podspecs. These are the same OS generation as the iOS minimum. SwiftPM builds a package for every platform, but without a declaration it uses its own minimums, such as macOS 10.13, which are too old for v1's Swift and C++. v0 supported the same platforms through its podspec.StringUtilschecked#available(iOS 26.0, macOS 26.0, *)before usingutf8Span. On tvOS and visionOS the wildcard resolves to the deployment target, so those builds failed to compile. The check now names all four platforms.React Native's prebuilt React frameworks only ship iOS and Mac Catalyst slices, so React Native apps on macOS, tvOS and visionOS still need the React Native fork for that platform. HybridViews stay behind
canImport(UIKit)as in v0, so they are available on iOS, tvOS and visionOS.CI keeps testing iOS only. Before trimming the test tooling from this PR, I checked locally with Hermes built for each platform: the standalone suite passed on macOS (24 passed, 1 skipped), and the test bundle built for the tvOS and visionOS simulators once the availability check was fixed.