Skip to content

Commit 48dae57

Browse files
committed
fix: codegen before packaging
1 parent fb8f0b1 commit 48dae57

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

packages/cli/src/brownfield/commands/packageIos.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export const packageIosCommand = curryOptions(
5757
const packageDir = path.join(brownieCacheDir, 'package');
5858
const configuration = options.configuration ?? 'Debug';
5959

60+
const hasBrownie = isBrownieInstalled(projectRoot);
61+
if (hasBrownie) {
62+
await runCodegen({ platform: 'swift' });
63+
}
64+
6065
await packageIosAction(
6166
options,
6267
{
@@ -73,9 +78,7 @@ export const packageIosCommand = curryOptions(
7378
platformConfig
7479
);
7580

76-
if (isBrownieInstalled(projectRoot)) {
77-
await runCodegen({ platform: 'swift' });
78-
81+
if (hasBrownie) {
7982
const productsPath = path.join(options.buildFolder, 'Build', 'Products');
8083
const brownieOutputPath = path.join(packageDir, 'Brownie.xcframework');
8184

0 commit comments

Comments
 (0)