Skip to content

[0.85] Fix duplicate symbols with React.XCFramework #1257

@cipolleschi

Description

@cipolleschi

Cherry-pick Request

Target Branch

0.85

Link to commit or PR to be picked

facebook/react-native@d21ffc9

Description

This fixes a duplicate symbol error when using React.XCFramework. The RCTSwiftUI.podspec was missing the podspec_sources function when setting up its source files, causing Xcode to both link with the XCFramework and compile the sources again — resulting in duplicate symbols and potential crashes.

This is a build-breaking issue for users consuming prebuilt XCFrameworks via CocoaPods, so it should be picked into 0.85.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions