File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
packages/cli/src/brownfield/commands Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @callstack/brownfield-cli ' : patch
3+ ---
4+
5+ fix duplicate symbols for react-brownfield
Original file line number Diff line number Diff line change 1+ import fs from 'node:fs' ;
12import path from 'node:path' ;
23
34import {
@@ -95,6 +96,17 @@ export const packageIosCommand = curryOptions(
9596 platformConfig
9697 ) ;
9798
99+ const reactBrownfieldXcframeworkPath = path . join (
100+ packageDir ,
101+ 'ReactBrownfield.xcframework'
102+ ) ;
103+ if ( fs . existsSync ( reactBrownfieldXcframeworkPath ) ) {
104+ // Strip the binary from ReactBrownfield.xcframework to make it interface-only.
105+ // This avoids duplicate symbols when consumer apps embed both BrownfieldLib
106+ // (which contains ReactBrownfield symbols) and ReactBrownfield.xcframework.
107+ stripFrameworkBinary ( reactBrownfieldXcframeworkPath ) ;
108+ }
109+
98110 if ( hasBrownie ) {
99111 const productsPath = path . join ( options . buildFolder , 'Build' , 'Products' ) ;
100112 const brownieOutputPath = path . join ( packageDir , 'Brownie.xcframework' ) ;
You can’t perform that action at this time.
0 commit comments