Skip to content

Commit 5725831

Browse files
authored
chore(ios): completed Xcode task names for pretty build log (#14371)
* chore(ios): completed Xcode task names for pretty build log * chore(ios): improved taskRegExp * chore(ios): removed another space in taskRegExp
1 parent 8de4497 commit 5725831

File tree

1 file changed

+43
-3
lines changed

1 file changed

+43
-3
lines changed

iphone/cli/commands/_build.js

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7213,30 +7213,70 @@ class iOSBuilder extends Builder {
72137213
// here's a list of tasks that Xcode can perform... we use this so we can inject some whitespace and make the xcodebuild output pretty
72147214
/* eslint-disable security/detect-non-literal-regexp */
72157215
taskRegExp = new RegExp('^(' + [
7216+
'AppIntentsSSUTrainixng',
7217+
'ClangStatCache',
72167218
'CodeSign',
72177219
'CompileAssetCatalog',
7220+
'CompileAssetCatalogVariant',
72187221
'CompileC',
72197222
'CompileStoryboard',
7223+
'ComputePackagePrebuildTargetDependencyGraph',
7224+
'ComputeTargetDependencyGraph',
7225+
'Copy',
72207226
'CopySwiftLibs',
72217227
'CpHeader',
7228+
'CreateBuildDescription',
7229+
'CreateBuildDirectory',
7230+
'CreateBuildOperation',
7231+
'CreateBuildRequest',
72227232
'CreateUniversalBinary',
72237233
'Ditto',
7234+
'EmitSwiftModule',
7235+
'ExecuteExternalTool',
7236+
'ExtractAppIntentsMetadata',
7237+
'GatherProvisioningInputs',
7238+
'GenerateAssetSymbols',
72247239
'GenerateDSYMFile',
7240+
'GenerateTAPI',
72257241
'Ld',
72267242
'Libtool',
7243+
'LinkAssetCatalog',
72277244
'LinkStoryboards',
7245+
'MkDir',
72287246
'PBXCp',
72297247
'PhaseScriptExecution',
7248+
'PrecompileModule',
7249+
'Prepare packages',
72307250
'ProcessInfoPlistFile',
72317251
'ProcessPCH',
72327252
'ProcessPCH\\+\\+',
72337253
'ProcessProductPackaging',
7254+
'ProcessProductPackagingDER',
7255+
'ProcessXCFramework',
7256+
'RegisterExecutionPolicyException',
7257+
'ScanDependencies',
7258+
'SendProjectDescription',
7259+
'SetMode',
7260+
'SetOwnerAndGroup',
7261+
'SignatureCollection',
72347262
'Strip',
72357263
'Stripping',
7264+
'SwiftCompile',
7265+
'SwiftDriver',
7266+
'SwiftDriver\\\\ Compilation',
7267+
'SwiftDriver\\\\ Compilation\\\\ Requirements',
7268+
'SwiftDriverJobDiscovery',
7269+
'SwiftEmitModule',
7270+
'SwiftExplicitDependencyGeneratePcm',
7271+
'SwiftExplicitDependencyCompileModuleFromInterface',
7272+
'SwiftGeneratePch',
7273+
'SwiftMergeGeneratedHeaders',
7274+
'SymLink',
72367275
'Touch',
72377276
'Validate',
7238-
'ValidateEmbeddedBinary'
7239-
].join('|') + ') ');
7277+
'ValidateEmbeddedBinary',
7278+
'WriteAuxiliaryFile'
7279+
].join('|') + ') ?');
72407280
/* eslint-enable security/detect-non-literal-regexp */
72417281
let buffer = '',
72427282
stopOutputting = false;
@@ -7249,7 +7289,7 @@ class iOSBuilder extends Builder {
72497289
}
72507290
if (!stopOutputting) {
72517291
if (taskRegExp.test(line)) {
7252-
// add a blank line between tasks to make things easier to read
7292+
// add a blank line between tasks (as in the original xcodebuild log) to make things easier to read
72537293
this.logger.trace();
72547294
this.logger.trace(line.cyan);
72557295
} else if (line.indexOf('=== BUILD TARGET ') !== -1) {

0 commit comments

Comments
 (0)