Skip to content

Commit 232e0a6

Browse files
authored
fix: allow framework as wrapper extension (#310)
* fix: allow framework as wrapper extension * changeset
1 parent 928e28a commit 232e0a6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/soft-pots-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rnef/platform-apple-helpers': patch
3+
---
4+
5+
fix: allow framework as wrapper extension

packages/platform-apple-helpers/src/lib/commands/run/getBuildSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function getBuildSettings(
6464

6565
const wrapperExtension = targetSettings.WRAPPER_EXTENSION;
6666

67-
if (wrapperExtension === 'app') {
67+
if (wrapperExtension === 'app' || wrapperExtension === 'framework') {
6868
const buildSettings = settings[targetIndex].buildSettings as BuildSettings;
6969

7070
if (!buildSettings) {
@@ -82,7 +82,7 @@ export async function getBuildSettings(
8282
}
8383

8484
throw new RnefError(
85-
`Failed to get build settings for your project. Looking for "app" wrapper extension but found: ${wrapperExtension}`
85+
`Failed to get build settings for your project. Looking for "app" or "framework" wrapper extension but found: ${wrapperExtension}`
8686
);
8787
}
8888

0 commit comments

Comments
 (0)