Skip to content

Commit

Permalink
fix: account for macOS in simulatorDest
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Dec 18, 2023
1 parent 011069b commit d572c25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export function buildProject(
args: BuildFlags,
): Promise<string> {
return new Promise((resolve, reject) => {
const simulatorDest =
platform === 'macos' ? platform : `${platform} Simulator`;

const xcodebuildArgs = [
xcodeProject.isWorkspace ? '-workspace' : '-project',
xcodeProject.name,
Expand All @@ -34,7 +37,7 @@ export function buildProject(
(udid
? `id=${udid}`
: mode === 'Debug'
? `generic/platform=${platform} Simulator`
? `generic/platform=${simulatorDest}`
: `generic/platform=${platform}`) +
(args.destination ? ',' + args.destination : ''),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ describe('listDevices', () => {
const sdkNames = getSDKNamefromPlatform('tvos');
const devices = await listDevices(sdkNames);

console.log(devices);

// Filter out all available simulators
expect(devices).not.toContainEqual({
isAvailable: true,
Expand Down

0 comments on commit d572c25

Please sign in to comment.