flutter/packages
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
..
flutter Fix and Test Conditional Validator Behavior in FormField (#132714) 2023-09-25 19:17:07 +00:00
flutter_driver Add "Frame Request Pending" lag to collected metrics (#135279) 2023-09-26 00:35:57 +00:00
flutter_goldens [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
flutter_goldens_client Unpin url launcher (remake) (#134958) 2023-09-20 02:43:57 +00:00
flutter_localizations [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
flutter_test simulatedAccessibilityTraversal account for force merging (#135178) 2023-09-25 17:40:06 +00:00
flutter_tools Wait for CONFIGURATION_BUILD_DIR to update when debugging with Xcode (#135444) 2023-09-26 17:48:19 +00:00
flutter_web_plugins [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
fuchsia_remote_debug_protocol Unpin url launcher (remake) (#134958) 2023-09-20 02:43:57 +00:00
integration_test [deps] Update package:web dependency. (#135174) 2023-09-20 22:55:52 +00:00
analysis_options.yaml