Skip to content

Commit

Permalink
fix targetSchema tvos + xcode group creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaDiachenko committed Oct 31, 2023
1 parent f2edff5 commit beef3d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sdk-apple/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ export const buildXcodeProject = async (c: Context) => {

const appFolderName = getAppFolderName(c, platform);
const runScheme = getConfigProp(c, platform, 'runScheme', 'Debug');
const schemeTarget = getConfigProp(c, c.platform, 'schemeTarget') || 'RNVApp';

let destinationPlatform = '';
switch (c.platform) {
Expand Down Expand Up @@ -640,7 +641,7 @@ export const buildXcodeProject = async (c: Context) => {
}
if (!ps.includes('-scheme')) {
p.push('-scheme');
p.push(appFolderName);
p.push(schemeTarget);
}
if (runScheme) {
if (!ps.includes('-configuration')) {
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-apple/src/xcodeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ const _parseXcodeProject = (c: Context, platform: RnvPlatform) =>

// FONTS
// Cocoapods take care of this
xcodeProj.pbxCreateGroup('Resources');
c.payload.pluginConfigiOS.embeddedFontSources.forEach((v) => {
xcodeProj.addResourceFile(v, { variantGroup: false });
});
Expand Down

0 comments on commit beef3d7

Please sign in to comment.