diff --git a/Sources/XcodeGenCLI/Commands/GenerateCommand.swift b/Sources/XcodeGenCLI/Commands/GenerateCommand.swift index 385846e5..8ae7ba86 100644 --- a/Sources/XcodeGenCLI/Commands/GenerateCommand.swift +++ b/Sources/XcodeGenCLI/Commands/GenerateCommand.swift @@ -69,6 +69,11 @@ class GenerateCommand: ProjectCommand { } } + // run pre gen command + if let command = project.options.preGenCommand { + try Task.run(bash: command, directory: projectDirectory.absolute().string) + } + // validate project do { try project.validateMinimumXcodeGenVersion(version) @@ -77,11 +82,6 @@ class GenerateCommand: ProjectCommand { throw GenerationError.validationError(error) } - // run pre gen command - if let command = project.options.preGenCommand { - try Task.run(bash: command, directory: projectDirectory.absolute().string) - } - // generate plists info("⚙️ Generating plists...") let fileWriter = FileWriter(project: project)