Skip to content

Commit b077a96

Browse files
authored
Prevent starting a simulator when build --forDevice (#2833)
* Pass option to build not to launch the Simulator as it's build only * Updating the mobile-cli-lib version
1 parent 4b8abed commit b077a96

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/services/ios-project-service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
329329

330330
// build only for device specific architecture
331331
if (!buildConfig.release && !buildConfig.architectures) {
332-
await this.$devicesService.initialize({ platform: this.$devicePlatformsConstants.iOS.toLowerCase(), deviceId: buildConfig.device });
332+
await this.$devicesService.initialize({ platform: this.$devicePlatformsConstants.iOS.toLowerCase(), deviceId: buildConfig.device,
333+
isBuildForDevice: true });
333334
let instances = this.$devicesService.getDeviceInstances();
334335
let devicesArchitectures = _(instances)
335336
.filter(d => this.$mobileHelper.isiOSPlatform(d.deviceInfo.platform) && d.deviceInfo.activeArchitecture)

0 commit comments

Comments
 (0)