@@ -54,11 +54,6 @@ static bool buildSwiftPackages(const std::vector<std::filesystem::path>& swiftPa
5454 return any_successful;
5555}
5656
57- static void installDependencies (const CLIArgs& args) {
58- auto structure = scanProjectStructure (args.workingDir );
59- installDependencies (structure, args.dryRun );
60- }
61-
6257static bool autobuild (const CLIArgs& args) {
6358 auto structure = scanProjectStructure (args.workingDir );
6459 auto & xcodeTargets = structure.xcodeTargets ;
@@ -87,6 +82,7 @@ static bool autobuild(const CLIArgs& args) {
8782 return false ;
8883 } else if (!xcodeTargets.empty ()) {
8984 LOG_INFO (" Building Xcode target: {}" , xcodeTargets.front ());
85+ installDependencies (structure, args.dryRun );
9086 auto buildSucceeded = buildXcodeTarget (xcodeTargets.front (), args.dryRun );
9187 // If build failed, try to build Swift packages
9288 if (!buildSucceeded && !swiftPackages.empty ()) {
@@ -117,7 +113,6 @@ static CLIArgs parseCLIArgs(int argc, char** argv) {
117113
118114int main (int argc, char ** argv) {
119115 auto args = parseCLIArgs (argc, argv);
120- installDependencies (args);
121116 auto success = autobuild (args);
122117 codeql::Log::flush ();
123118 if (!success) {
0 commit comments