Skip to content

Commit 5cd816f

Browse files
FatmeFatme
authored andcommitted
Merge pull request #189 from NativeScript/fatme/run-application-od-ios-device
Run application on iOS device on OSX
2 parents 63b8945 + 97e41a1 commit 5cd816f

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

lib/services/platform-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export class PlatformService implements IPlatformService {
226226
var packageFile = this.getLatestApplicationPackageForDevice(platformData).wait().packageName;
227227
this.$logger.out("Using ", packageFile);
228228

229-
this.$devicesServices.initialize(platform, options.device).wait();
229+
this.$devicesServices.initialize({platform: platform, deviceId: options.device}).wait();
230230
var action = (device: Mobile.IDevice): IFuture<void> => { return device.deploy(packageFile, this.$projectData.projectId); };
231231
this.$devicesServices.execute(action).wait();
232232

resources/help.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,27 @@ and that USB debugging is enabled on the device.
279279

280280
--[/]--
281281

282+
--[device|list-applications]--
283+
284+
Usage:
285+
$ tns device list-applications
286+
$ nativescript device list-applications
287+
288+
Lists all installed applications on device.
289+
290+
--[/]--
291+
292+
--[device|run]--
293+
294+
Usage:
295+
$ tns device run <ApplicationId>
296+
$ nativescript device run <ApplicationId>
297+
298+
Run the selected application on device.
299+
<ApplicationId> is the application id as listed from $tns device list-applications
300+
301+
--[/]--
302+
282303
--[feature-usage-tracking]--
283304

284305
Usage:

0 commit comments

Comments
 (0)