From 817cbd0da2f62cc81fcc2a92acfaaffb8dbf0060 Mon Sep 17 00:00:00 2001 From: Alex Medinsh Date: Thu, 19 Feb 2026 20:02:04 +0200 Subject: [PATCH] feedback --- packages/flutter_tools/lib/src/ios/mac.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart index 8ce4a0abdae..7c61c2d0832 100644 --- a/packages/flutter_tools/lib/src/ios/mac.dart +++ b/packages/flutter_tools/lib/src/ios/mac.dart @@ -584,10 +584,9 @@ Future buildXcodeProject({ if (globals.fs.directory(expectedOutputDirectory).existsSync()) { // Copy app folder to a place where other tools can find it without knowing // the BuildInfo. - outputDir = targetBuildDir; - if (configuration != null) { - outputDir = outputDir.replaceFirst('/$configuration-', '/'); - } + outputDir = configuration != null + ? targetBuildDir.replaceFirst('/$configuration-', '/') + : targetBuildDir; globals.fs.directory(outputDir).createSync(recursive: true);