File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,18 @@ def get_workspace():
103103
104104 lastest_scheme = False
105105 if scheme is None :
106- output = subprocess .check_output (f"xcodebuild -list -json -workspace '{ workspace } '" , shell = True , universal_newlines = True )
106+ cmd = f"xcodebuild -list -json -workspace '{ workspace } '"
107+ print ("run: " , cmd )
108+ output = subprocess .check_output (cmd , shell = True , universal_newlines = True )
107109 output = json .loads (output )
108110 scheme = output ["workspace" ]["schemes" ][0 ]
109111 lastest_scheme = True
110112 # _usage("you need to specify scheme!")
111113
112114 # find and record build_root for workspace and scheme
113- output = subprocess .check_output (f"xcodebuild -showBuildSettings -json -workspace '{ workspace } ' -scheme '{ scheme } ' 2>/dev/null" , shell = True , universal_newlines = True )
115+ cmd = f"xcodebuild -showBuildSettings -json -workspace '{ workspace } ' -scheme '{ scheme } ' 2>/dev/null"
116+ print ("run: " , cmd )
117+ output = subprocess .check_output (cmd , shell = True , universal_newlines = True )
114118 output = json .loads (output )
115119 build_dir = output [0 ]["buildSettings" ]["SYMROOT" ]
116120 build_root = os .path .abspath (os .path .join (build_dir , "../.." ))
You can’t perform that action at this time.
0 commit comments