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 @@ -573,6 +573,15 @@ def check_ios_mac_build_depends(self):
573
573
cocos .Logging .info (MultiLanguage .get_string ('COMPILE_INFO_USE_COCOAPODS' ))
574
574
575
575
576
+ def append_xcpretty_if_installed (self , command ):
577
+ if not cocos .os_is_mac ():
578
+ return command ;
579
+ from distutils import spawn
580
+ if spawn .find_executable ("xcpretty" ) == None :
581
+ return command
582
+ return command + " | xcpretty"
583
+
584
+
576
585
def _remove_res (self , target_path ):
577
586
build_cfg_dir = self ._build_cfg_path ()
578
587
cfg_file = os .path .join (build_cfg_dir , CCPluginCompile .BUILD_CONFIG_FILE )
@@ -762,6 +771,7 @@ def build_ios(self):
762
771
if self ._sign_id is not None :
763
772
command = "%s CODE_SIGN_IDENTITY=\" %s\" " % (command , self ._sign_id )
764
773
774
+ command = self .append_xcpretty_if_installed (command )
765
775
self ._run_cmd (command )
766
776
767
777
filelist = os .listdir (output_dir )
@@ -893,6 +903,7 @@ def build_mac(self):
893
903
"CONFIGURATION_BUILD_DIR=\" %s\" " % (output_dir )
894
904
])
895
905
906
+ command = self .append_xcpretty_if_installed (command )
896
907
self ._run_cmd (command )
897
908
898
909
self .target_name = targetName
You can’t perform that action at this time.
0 commit comments