Skip to content

Commit e51a315

Browse files
author
rosen-vladimirov
committed
Fix spawning of simulator and get back prepublish script
1 parent b10c7de commit e51a315

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/simctl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ export class Simctl implements ISimctl {
115115

116116
private simctlExec(command: string, args: string[], opts?: any): any {
117117
let fullCommand = (["xcrun", "simctl", command].concat(args)).join(" ");
118-
return childProcess.execSync(fullCommand, opts);
118+
return childProcess.execSync(fullCommand, opts).toString().trim();
119119
}
120120
}

lib/xcode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import childProcess = require("./child-process");
22

33
export function getPathFromXcodeSelect(): string {
4-
return childProcess.execSync("xcode-select", ["-print-path"]);
4+
return childProcess.execSync("xcode-select -print-path").toString().trim();
55
}
66

77
export function getXcodeVersionData(): IXcodeVersionData {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "",
55
"main": "./lib/ios-sim.js",
66
"scripts": {
7+
"prepublish": "node prepublish.js",
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},
910
"bin": {

0 commit comments

Comments
 (0)