Skip to content

Commit

Permalink
fix(flagship): add targeted device to both Debug and Release config
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Endler committed Oct 6, 2018
1 parent 752d74b commit 70f9aaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/flagship/src/lib/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ export function targetedDevice(configuration: Config): void {
Universal: `"1,2"`
};

const productNameRx = new RegExp(`PRODUCT_NAME\\s*=\\s*${configuration.name}`, 'g');

fs.update(
path.ios.pbxprojFilePath(configuration),
`PRODUCT_NAME = ${configuration.name}`,
productNameRx,
`PRODUCT_NAME = ${configuration.name};
TARGETED_DEVICE_FAMILY = ${devices[configuration.targetedDevices]}`
);
Expand Down

0 comments on commit 70f9aaa

Please sign in to comment.