Skip to content

Add Swift Package Manager manifest (React Native 0.87 SwiftPM) - #399

Open
serpixel wants to merge 1 commit into
mockingbot:masterfrom
serpixel:swiftpm-manifest
Open

serpixel wants to merge 1 commit into
mockingbot:masterfrom
serpixel:swiftpm-manifest

Conversation

@serpixel

@serpixel serpixel commented Oct 5, 2026

Copy link
Copy Markdown

Adds Package.swift + the scaffold prefix header for react-native-zip-archive 9.5.1, generated with RN 0.87.1's react-native spm scaffold (RN's documented path for community libraries) and validated with swift package dump-package (swift-tools-version 6.0).

The two React path dependencies (ReactNative, React-GeneratedCode) resolve through RN 0.87's autolinking alias (build/generated/autolinking/libs/...) at app resolve time — the same shape react-native-safe-area-context 5.10.0 ships — so they do not resolve in a bare clone. CocoaPods users are unaffected: the podspec stays the source of truth there.

Context: RN 0.87's SwiftPM autolinking hard-fails the package resolve for any autolinked library without a manifest (react-native-community/discussions-and-proposals RFC 0994 tracks the CocoaPods deprecation this feeds into).

Generated with RN 0.87.1's `react-native spm scaffold` from the podspec and
validated with `swift package dump-package` (swift-tools-version 6.0). The
two React path dependencies resolve through RN 0.87's autolinking alias at
app resolve time (same shape react-native-safe-area-context ships); they do
not resolve in a bare clone. CocoaPods users are unaffected.

Needed for React Native 0.87 SwiftPM autolinking, where autolinked native
libraries without a manifest fail the package resolve.
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