Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/cli/src/brownfield/commands/packageIos.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from 'node:fs';
import path from 'node:path';

import {
Expand Down Expand Up @@ -95,6 +96,17 @@ export const packageIosCommand = curryOptions(
platformConfig
);

const reactBrownfieldXcframeworkPath = path.join(
packageDir,
'ReactBrownfield.xcframework'
);
if (fs.existsSync(reactBrownfieldXcframeworkPath)) {
// Strip the binary from ReactBrownfield.xcframework to make it interface-only.
// This avoids duplicate symbols when consumer apps embed both BrownfieldLib
// (which contains ReactBrownfield symbols) and ReactBrownfield.xcframework.
Comment thread
hurali97 marked this conversation as resolved.
stripFrameworkBinary(reactBrownfieldXcframeworkPath);
}

if (hasBrownie) {
const productsPath = path.join(options.buildFolder, 'Build', 'Products');
const brownieOutputPath = path.join(packageDir, 'Brownie.xcframework');
Expand Down
Loading