Skip to content

Commit c0bd22e

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Use --frameworkPath option for debug command
1 parent 53f35ff commit c0bd22e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/services/ios-project-service.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,17 @@ class IOSProjectService implements IPlatformProjectService {
196196
}
197197

198198
public getDebugOnDeviceSetup(): Mobile.IDebugOnDeviceSetup {
199-
var tnsIosPackage = this.$npm.install("tns-ios").wait();
199+
var tnsIosPackage = "";
200+
if(options.frameworkPath) {
201+
if(this.$fs.getFsStats(options.frameworkPath).wait().isFile()) {
202+
this.$errors.fail("frameworkPath option must be path to directory which contains tns-ios framework");
203+
}
204+
205+
tnsIosPackage = path.resolve(options.frameworkPath);
206+
} else {
207+
tnsIosPackage = this.$npm.install("tns-ios").wait();
208+
}
209+
200210
var safariPath = path.join(tnsIosPackage, "WebInspectorUI/Safari/Main.html");
201211

202212
return {

0 commit comments

Comments
 (0)