simctl
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -33,17 +33,5 @@ /* | ||
var extensions = { | ||
startByApp : function(appName, deviceid) { | ||
var command = 'open -a "' + appName + '"'; | ||
if (!deviceid) { | ||
return shell.exec(command, { silent: true } ); | ||
} else { | ||
command += util.format(command + ' --args -CurrentDeviceUDID %s', deviceid); | ||
return shell.exec(command, { silent: true } ); | ||
} | ||
}, | ||
start : function(deviceid) { | ||
// try "iOS Simulator" first (Xcode 6), if that fails, try "Simulator" (Xcode 7) | ||
if (extensions.startByApp('iOS Simulator', deviceid).code !== 0) { | ||
extensions.startByApp('Simulator', deviceid); | ||
} | ||
var command = util.format('xcrun instruments -w "%s"', deviceid); | ||
return shell.exec(command, { silent: true } ); | ||
}, | ||
@@ -50,0 +38,0 @@ |
{ | ||
"name": "simctl", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "library for Xcode simctl utility on OS X", | ||
@@ -5,0 +5,0 @@ "repository": { |
15598
369