Skip to content

Commit 8dde4b0

Browse files
FatmeFatme
authored andcommitted
Merge pull request #1406 from NativeScript/fatme/fix-deploy
Respect buildConfig parameter from buildForDeploy function
2 parents 2e4c9b5 + 37b6759 commit 8dde4b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/services/ios-project-service.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
217217
}).future<void>()();
218218
}
219219

220-
public buildForDeploy(platform: string): IFuture<void> {
220+
public buildForDeploy(platform: string, buildConfig?: IBuildConfig): IFuture<void> {
221221
if (this.$options.release) {
222-
return this.buildProject(this.platformData.projectRoot);
222+
return this.buildProject(this.platformData.projectRoot, buildConfig);
223223
}
224224

225225
let devicesArchitectures = _(this.$devicesService.getDeviceInstances())
@@ -237,7 +237,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
237237
architectures.push('ONLY_ACTIVE_ARCH=NO');
238238
}
239239

240-
return this.buildProject(this.platformData.projectRoot, { architectures: architectures });
240+
buildConfig = buildConfig || { };
241+
buildConfig.architectures = architectures;
242+
243+
return this.buildProject(this.platformData.projectRoot, buildConfig);
241244
}
242245

243246
public isPlatformPrepared(projectRoot: string): IFuture<boolean> {

0 commit comments

Comments
 (0)