Skip to content

Commit 4610aed

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Use --frameworkPath option for debug command
1 parent f7e5b1d commit 4610aed

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
@@ -197,7 +197,17 @@ class IOSProjectService implements IPlatformProjectService {
197197
}
198198

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

203213
return {

0 commit comments

Comments
 (0)