flutter/packages/flutter_tools/test/general.shard/ios
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
..
code_signing_test.dart Change some required nullable parameters in tool to non-null (#114115) 2022-11-04 17:36:01 +00:00
core_devices_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
devices_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
ios_deploy_test.dart Enable strict-inference (#135043) 2023-09-20 19:59:08 +00:00
ios_device_install_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
ios_device_logger_test.dart Fix log filtering and CI tests for iOS 17 physical devices (#132491) 2023-08-14 17:30:55 +00:00
ios_device_port_forwarder_test.dart [tool] Consistent FakeProcessManager.run/runSync (#103947) 2022-05-17 11:15:54 -07:00
ios_device_project_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
ios_device_start_nonprebuilt_test.dart Wait for CONFIGURATION_BUILD_DIR to update when debugging with Xcode (#135444) 2023-09-26 17:48:19 +00:00
ios_device_start_prebuilt_test.dart Wait for CONFIGURATION_BUILD_DIR to update when debugging with Xcode (#135444) 2023-09-26 17:48:19 +00:00
ios_project_migration_test.dart Fix Xcode 15 build failure due to DT_TOOLCHAIN_DIR (#132803) 2023-08-18 15:24:55 +00:00
ios_workflow_test.dart Only show iOS simulators, reduce output spew in verbose (#108345) 2022-07-26 19:08:06 +00:00
mac_test.dart Reland "Print pretty error when xcodebuild fails due to missing simulator #130286" (#130506) 2023-07-13 19:36:10 +00:00
native_assets_test.dart Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
simulators_test.dart Check for simulator runtime in flutter doctor (#131795) 2023-08-04 17:14:06 +00:00
xcode_debug_test.dart Wait for CONFIGURATION_BUILD_DIR to update when debugging with Xcode (#135444) 2023-09-26 17:48:19 +00:00
xcodeproj_test.dart Set the CONFIGURATION_BUILD_DIR in generated xcconfig when debugging core device (#134493) 2023-09-13 18:08:35 +00:00
xcresult_test_data.dart Reland "Print pretty error when xcodebuild fails due to missing simulator #130286" (#130506) 2023-07-13 19:36:10 +00:00
xcresult_test.dart Reland "Print pretty error when xcodebuild fails due to missing simulator #130286" (#130506) 2023-07-13 19:36:10 +00:00