We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53f35ff commit c0bd22eCopy full SHA for c0bd22e
lib/services/ios-project-service.ts
@@ -196,7 +196,17 @@ class IOSProjectService implements IPlatformProjectService {
196
}
197
198
public getDebugOnDeviceSetup(): Mobile.IDebugOnDeviceSetup {
199
- var tnsIosPackage = this.$npm.install("tns-ios").wait();
+ 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
210
var safariPath = path.join(tnsIosPackage, "WebInspectorUI/Safari/Main.html");
211
212
return {
0 commit comments