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