flutter/packages/flutter_tools/lib/src
Victoria Ashworth 3cfe3720d6
Wait for CONFIGURATION_BUILD_DIR to update when debugging with Xcode (#135444)
So there appears to be a race situation between the flutter CLI and Xcode. In the CLI, we update the `CONFIGURATION_BUILD_DIR` in the Xcode build settings and then tell Xcode to install, launch, and debug the app. When Xcode installs the app, it should use the `CONFIGURATION_BUILD_DIR` to find the bundle. However, it appears that sometimes Xcode hasn't processed the change to the build settings before the install happens, which causes it to not be able to find the bundle.

Fixes https://github.com/flutter/flutter/issues/135442

--- 

Since it's a timing issue, there's not really a consistent way to test it.

I was able to confirm that it works, though, by using the following steps:
1. Create a flutter project
2. Open the project in Xcode
3. `flutter clean`
4. `flutter run --profile -v`

If I saw a print line `stderr: CONFIGURATION_BUILD_DIR: build/Debug-iphoneos`, that means it first found the old and incorrect `CONFIGURATION_BUILD_DIR` before updating to the the new, so I was able to confirm that it would wait until it updated.
2023-09-26 17:48:19 +00:00
..
android [Android] Add Java/AGP/Gradle incompatibility warning to flutter create (#131444) 2023-09-20 16:01:04 +00:00
base [Android] Add Java/AGP/Gradle incompatibility warning to flutter create (#131444) 2023-09-20 16:01:04 +00:00
build_system Reland "Native assets support for Linux" (#135097) 2023-09-22 06:07:06 +00:00
commands Send analytics on 'build ios' and 'build ipa' for plist impeller value (#135193) 2023-09-21 11:49:29 -07:00
custom_devices fixes to anticipate next Dart linter release (#127211) 2023-05-19 21:27:24 +00:00
dart Fix dart pub cache clean command on pub.dart (#128171) 2023-06-15 20:38:04 +00:00
debug_adapters [flutter_tools/dap] Improve rendering of structured errors via DAP (#131251) 2023-07-31 13:03:26 +01:00
drive Fix: use --web-launch-url and --web-hostname arguments in flutter drive (#131763) 2023-08-10 20:53:08 +00:00
fuchsia Disable Fuchsia SDK usage unless opted in (#123084) 2023-03-31 02:31:07 +00:00
intellij [flutter_tools] Fix TypeError when a FileSystemException happens during flutter doctor (#133373) 2023-09-05 18:00:07 +00:00
ios Wait for CONFIGURATION_BUILD_DIR to update when debugging with Xcode (#135444) 2023-09-26 17:48:19 +00:00
isolated Update DWDS to 20.0.1 in flutter_tools (#132350) 2023-08-11 23:09:07 +00:00
linux Reland "Native assets support for Linux" (#135097) 2023-09-22 06:07:06 +00:00
localizations 🐛 Treat empty ARB content as empty map when decoding (#131242) 2023-08-01 01:27:54 +00:00
macos [macOS,iOS] Improve CocoaPods upgrade instructions (#135453) 2023-09-25 12:27:31 -07:00
migrations Reland "Native assets support for Linux" (#135097) 2023-09-22 06:07:06 +00:00
proxied_devices Make ProxiedDevices a subclass of PollingDeviceDiscovery. (#130640) 2023-07-17 17:40:12 +00:00
reporting Support disabling animations in the CLI (#132239) 2023-08-23 03:35:22 +00:00
runner Add --frontend-server-starter-path option to flutter run and flutter test (#135038) 2023-09-21 14:32:35 -04:00
test Reland "Native assets support for Linux" (#135097) 2023-09-22 06:07:06 +00:00
tester Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
vscode [tool] In flutter doctor -v, warn when Android Studio version could not be detected. (#126395) 2023-06-01 14:51:30 +00:00
web finer grained logging of Chromium launch sequence (#135078) 2023-09-20 15:20:16 -07:00
windows Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
application_package.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
artifacts.dart Add support for LOCAL_ENGINE_HOST to Linux/Mac/Win builds. (#132579) 2023-08-16 22:24:51 +00:00
asset.dart [web] Encode AssetManifest.bin as JSON and use that on the web. (#131382) 2023-09-19 22:38:51 +00:00
build_info.dart Reland "Native assets support for Linux" (#135097) 2023-09-22 06:07:06 +00:00
bundle_builder.dart [flutter_tools] fix cast error when dart-defines-json file includes null (#128909) 2023-06-16 18:12:22 +00:00
bundle.dart Remove the fast reassemble / single widget reload feature (#132255) 2023-08-10 21:48:06 +00:00
cache.dart Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
cmake_project.dart [Windows] Ensure window is shown (#127046) 2023-05-19 22:25:55 +00:00
cmake.dart Reduce usage of testUsingContext (#131078) 2023-07-24 17:22:25 +00:00
compile.dart Add --frontend-server-starter-path option to flutter run and flutter test (#135038) 2023-09-21 14:32:35 -04:00
context_runner.dart Always require --local-engine-host if --local-engine (#133003) 2023-08-22 01:32:14 +00:00
convert.dart Make custom Utf8Decoder replacement not extend platform class. (#123211) 2023-03-22 07:53:56 -07:00
daemon.dart Fix typos (#121171) 2023-02-23 19:43:21 +00:00
dart_pub_json_formatter.dart
desktop_device.dart [flutter_tools] remove desktop device restrictions on Impeller. (#130430) 2023-07-13 16:26:02 +00:00
devfs.dart Remove the fast reassemble / single widget reload feature (#132255) 2023-08-10 21:48:06 +00:00
device_port_forwarder.dart
device.dart Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
devtools_launcher.dart Make Logger required when injected in flutter_tool (#114111) 2022-10-27 22:40:08 +00:00
doctor_validator.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
doctor.dart Check for simulator runtime in flutter doctor (#131795) 2023-08-04 17:14:06 +00:00
emulator.dart Reland "[tool] Move Java functions to their own file" (#126577) 2023-05-20 06:29:21 +00:00
features.dart Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
flutter_application_package.dart [tool] Install the corresponding APK in flutter run (#113622) 2022-10-19 02:44:30 +00:00
flutter_cache.dart Allows adding a storage 'realm' to the storage base URL (#131951) 2023-08-09 23:26:05 +00:00
flutter_device_manager.dart Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
flutter_features.dart Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
flutter_manifest.dart Add spaces after flow control statements (#126320) 2023-05-15 11:07:30 +02:00
flutter_plugins.dart Speed up native assets target (#134523) 2023-09-15 12:23:08 -07:00
flutter_project_metadata.dart Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
globals.dart Clean up analytics opt in/out flags (#132588) 2023-09-12 22:49:05 +00:00
html_utils.dart flutter-tool, web: update HTML template serviceWorkerVersion to be const (#124826) 2023-04-14 02:01:21 +00:00
http_host_validator.dart Fix typos (#121171) 2023-02-23 19:43:21 +00:00
license_collector.dart [flutter_tools] refactor license collector (#128748) 2023-06-15 20:25:19 +00:00
mdns_discovery.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
native_assets.dart Reland "Native assets support for Linux" (#135097) 2023-09-22 06:07:06 +00:00
persistent_tool_state.dart Create a main alias for master channel. (#115388) 2022-11-16 02:49:00 +00:00
platform_plugins.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
plugins.dart Improve Dart plugin registration handling (#122046) 2023-03-09 21:33:38 +00:00
pre_run_validator.dart
preview_device.dart Reland "Remove references to Observatory (#118577)" (#121606) 2023-02-28 11:57:04 -05:00
project_validator_result.dart Add info project validator status (#109169) 2022-08-09 17:59:06 +00:00
project_validator.dart [Android] Add Java/AGP/Gradle incompatibility warning to flutter create (#131444) 2023-09-20 16:01:04 +00:00
project.dart [Android] Add Java/AGP/Gradle incompatibility warning to flutter create (#131444) 2023-09-20 16:01:04 +00:00
protocol_discovery.dart Remove an unnecessary assert (#129796) 2023-06-30 18:07:54 +00:00
proxy_validator.dart [tools]Build IPA validation UI Polish (#116744) 2022-12-15 14:43:32 -08:00
resident_devtools_handler.dart Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
resident_runner.dart Add --frontend-server-starter-path option to flutter run and flutter test (#135038) 2023-09-21 14:32:35 -04:00
run_cold.dart Reland "Fix issue where DevTools would not be immediately available when using --start-paused (#126698)" (#129368) 2023-06-28 00:16:13 +05:30
run_hot.dart Speed up native assets target (#134523) 2023-09-15 12:23:08 -07:00
sksl_writer.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
template.dart Fix description in index.html / manifest.json getting double quoted (#131842) 2023-08-18 02:58:20 +00:00
tracing.dart Reland "Remove references to Observatory (#118577)" (#121606) 2023-02-28 11:57:04 -05:00
version.dart [flutter_tools] Fix "FormatException: Invalid date format" during version freshness check (#134088) 2023-09-06 17:22:13 +00:00
vmservice.dart Removes ios universal link vmservices and let xcodeproject to dump js… (#133709) 2023-08-31 21:50:54 +00:00
xcode_project.dart Makes scheme and target optional parameter when getting universal lin… (#134571) 2023-09-15 21:01:05 +00:00