Skip to content

Commit

Permalink
Log device information (8.x) (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
janpio authored and erisu committed Aug 27, 2019
1 parent 2098b7f commit cd2bdca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ios-sim",
"version": "8.0.1",
"version": "8.0.2-dev",
"preferGlobal": "true",
"description": "launch iOS apps into the iOS Simulator from the command line (Xcode 8.0+)",
"main": "ios-sim.js",
Expand Down
5 changes: 5 additions & 0 deletions src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@ let lib = {
// --devicetypeid is a string in the form "devicetype, runtime_version" (optional: runtime_version)
let device = getDeviceFromDeviceTypeId(devicetypeid)

// log device information
console.log(util.format('device.name: %s', device.name))
console.log(util.format('device.runtime: %s', device.runtime))
console.log(util.format('device.id: %s', device.id))

// so now we have the deviceid, we can proceed
simctl.extensions.start(device.id)
simctl.install(device.id, app_path)
Expand Down

0 comments on commit cd2bdca

Please sign in to comment.