File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -549,6 +549,15 @@ def check_ios_mac_build_depends(self):
549
549
self .project_name = name
550
550
self .xcodeproj_name = xcodeproj_name
551
551
552
+ def append_xcpretty_if_installed (self , command ):
553
+ if not cocos .os_is_mac ():
554
+ return command ;
555
+ from distutils import spawn
556
+ if spawn .find_executable ("xcpretty" ) == None :
557
+ return command
558
+ return command + " | xcpretty"
559
+
560
+
552
561
def _remove_res (self , target_path ):
553
562
build_cfg_dir = self ._build_cfg_path ()
554
563
cfg_file = os .path .join (build_cfg_dir , CCPluginCompile .BUILD_CONFIG_FILE )
@@ -735,6 +744,7 @@ def build_ios(self):
735
744
if self ._sign_id is not None :
736
745
command = "%s CODE_SIGN_IDENTITY=\" %s\" " % (command , self ._sign_id )
737
746
747
+ command = self .append_xcpretty_if_installed (command )
738
748
self ._run_cmd (command )
739
749
740
750
filelist = os .listdir (output_dir )
@@ -865,6 +875,7 @@ def build_mac(self):
865
875
"CONFIGURATION_BUILD_DIR=\" %s\" " % (output_dir )
866
876
])
867
877
878
+ command = self .append_xcpretty_if_installed (command )
868
879
self ._run_cmd (command )
869
880
870
881
self .target_name = targetName
You can’t perform that action at this time.
0 commit comments