Skip to content

Commit

Permalink
clean up instruments pathfinding
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Dec 18, 2013
1 parent 8bc99f2 commit a48247a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/devices/ios/instruments.js
Expand Up @@ -239,15 +239,12 @@ Instruments.prototype.spawnInstruments = function(tmpDir) {
args = args.concat(["-e", "UIARESULTSPATH", tmpDir]);
var env = _.clone(process.env);
var buildPath = path.resolve(__dirname, "../../../build");
var iwdPath = path.resolve(buildPath, "iwd");
var iwd4Path = path.resolve(buildPath, "iwd4");
var isXcode4 = this.xcodeVersion !== null && this.xcodeVersion[0] === '4';
var iwdPath = path.resolve(buildPath, isXcode4 ? "iwd4" : "iwd");
env.CA_DEBUG_TRANSACTIONS = 1;
if (this.withoutDelay && !this.udid) {
var isXcode4 = this.xcodeVersion !== null && this.xcodeVersion[0] === '4';
env.DYLD_INSERT_LIBRARIES = path.resolve(isXcode4 ? iwd4Path : iwdPath,
"InstrumentsShim.dylib");

env.LIB_PATH = path.resolve(__dirname, isXcode4 ? iwd4Path : iwdPath);
env.DYLD_INSERT_LIBRARIES = path.resolve(iwdPath, "InstrumentsShim.dylib");
env.LIB_PATH = iwdPath;
}
logger.info("Spawning instruments with command: " + this.instrumentsPath +
" " + args.join(" "));
Expand Down

0 comments on commit a48247a

Please sign in to comment.