File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments