diff --git a/lib/simctl-extensions.js b/lib/simctl-extensions.js index 0a3e1a5..c7a6b49 100644 --- a/lib/simctl-extensions.js +++ b/lib/simctl-extensions.js @@ -30,21 +30,9 @@ var shell = require('shelljs'), 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 } ); }, log : function(deviceid, filepath) { diff --git a/package.json b/package.json index f43333a..e3d5e21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simctl", - "version": "0.0.8", + "version": "0.0.9", "description": "library for Xcode simctl utility on OS X", "repository": { "type": "git",