Skip to content

Commit

Permalink
fix: use parameter platform in run and build
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Mar 2, 2023
1 parent 96e5164 commit e62b142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/application/runIos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function runApp(buildType?: string, iosPlatform: IosPlatform = iosB
}

const {destination} = getIosBuildDestination(
iosBuildPlatforms.simulator,
iosPlatform,
buildFlavor.scheme,
)

Expand All @@ -127,7 +127,7 @@ export async function runApp(buildType?: string, iosPlatform: IosPlatform = iosB

for (const device of devicesToRun) {
const id = device.udid
installApp(id, buildFlavor.scheme, iosBuildPlatforms.simulator)
installApp(id, buildFlavor.scheme, iosPlatform)
launchApp(id, bundleID)
}

Expand Down
3 changes: 2 additions & 1 deletion src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {Args, Command, Flags} from '@oclif/core'
import {buildIos} from '../application/buildIos'
import {buildAndroid} from '../application/buildAndroid'
import {getAppName} from '../application/utils'
import {iosBuildPlatforms} from '../application/iosUtils'

export default class Build extends Command {
static description = 'Create native builds for android and ios'
Expand Down Expand Up @@ -36,7 +37,7 @@ export default class Build extends Command {

if (shouldBuildIos) {
this.log('Build ios')
buildIos(buildFlavor, 'simulator')
buildIos(buildFlavor, iosBuildPlatforms.simulator)
}
if (shouldBuildAndroid) {
this.log('Building android')
Expand Down

0 comments on commit e62b142

Please sign in to comment.