Repository: flutter
Issue: "Run app to dismiss dialogs" flakey with iOS 17 devices
Labels: team-infra,P2,triaged-infra

### Type of Request

bug

### Infrastructure Environment

Recipes

### What is happening?

Seems that the "Run app to dismiss dialogs" step is flakey when using iOS 17 devices. In this step, we test the Xcode project `infra-dialog.xcodeproj` using the device id. For some reason, `xcodebuild` does not find the device 

```
Command line invocation:
     /opt/flutter/xcode/15a240d/XCode.app/Contents/Developer/usr/bin/xcodebuild -project infra-dialog.xcodeproj -scheme infra-dialog -destination id=00008030-00026D8034E0C02E test CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=S8QB4VV633 "PROVISIONING_PROFILE_SPECIFIER=match Development *"
 User defaults from command line:
     IDEPackageSupportUseBuiltinSCM = YES
 Build settings from command line:
     CODE_SIGN_STYLE = Manual
     DEVELOPMENT_TEAM = S8QB4VV633
     PROVISIONING_PROFILE_SPECIFIER = match Development *
 2024-01-10 01:53:20.457 xcodebuild[12184:115274] Writing error result bundle to /var/folders/t6/8ffn121n1gn_h072mh8ryyx40000gp/T/ResultBundle_2024-10-01_01-53-0020.xcresult
 xcodebuild: error: Unable to find a destination matching the provided destination specifier:
 		{ id:00008030-00026D8034E0C02E }
 	Available destinations for the "infra-dialog" scheme:
 		{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:00008103-001240282633001E }
 		{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:00008103-001240282633001E }
 		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
 		{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
 		{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
 		{ platform:iOS Simulator, id:26947589-8C35-4C06-8048-8DD50E391A8E, OS:17.0, name:iPad (10th generation) }
 		{ platform:iOS Simulator, id:26947589-8C35-4C06-8048-8DD50E391A8E, OS:17.0, name:iPad (10th generation) }
 		{ platform:iOS Simulator, id:A9BECBF3-467A-4DFC-867D-9DF5475176AE, OS:17.0, name:iPad Air (5th generation) }
 		{ platform:iOS Simulator, id:A9BECBF3-467A-4DFC-867D-9DF5475176AE, OS:17.0, name:iPad Air (5th generation) }
 		{ platform:iOS Simulator, id:729DE591-EDA3-4E4D-85F5-F0AE17FC113B, OS:17.0, name:iPad Pro (11-inch) (4th generation) }
 		{ platform:iOS Simulator, id:729DE591-EDA3-4E4D-85F5-F0AE17FC113B, OS:17.0, name:iPad Pro (11-inch) (4th generation) }
 		{ platform:iOS Simulator, id:4F408240-55C7-4B52-8EF6-096F60797E1A, OS:17.0, name:iPad Pro (12.9-inch) (6th generation) }
 		{ platform:iOS Simulator, id:4F408240-55C7-4B52-8EF6-096F60797E1A, OS:17.0, name:iPad Pro (12.9-inch) (6th generation) }
 		{ platform:iOS Simulator, id:0B486413-1750-4DBD-A145-CE34D8A04BE5, OS:17.0, name:iPad mini (6th generation) }
 		{ platform:iOS Simulator, id:0B486413-1750-4DBD-A145-CE34D8A04BE5, OS:17.0, name:iPad mini (6th generation) }
 		{ platform:iOS Simulator, id:60B4029F-059E-4EF5-8EF1-87615A9823EA, OS:17.0, name:iPhone 14 }
 		{ platform:iOS Simulator, id:60B4029F-059E-4EF5-8EF1-87615A9823EA, OS:17.0, name:iPhone 14 }
 		{ platform:iOS Simulator, id:D85D9C1C-9771-47F2-9B65-DDFBAA059F9C, OS:17.0, name:iPhone 14 Plus }
 		{ platform:iOS Simulator, id:D85D9C1C-9771-47F2-9B65-DDFBAA059F9C, OS:17.0, name:iPhone 14 Plus }
 		{ platform:iOS Simulator, id:D33C1595-5402-4BD0-93C6-86020D8AD240, OS:17.0, name:iPhone 14 Pro }
 		{ platform:iOS Simulator, id:D33C1595-5402-4BD0-93C6-86020D8AD240, OS:17.0, name:iPhone 14 Pro }
 		{ platform:iOS Simulator, id:E7C0A564-5F33-4F86-A43B-D0E885380741, OS:17.0, name:iPhone 14 Pro Max }
 		{ platform:iOS Simulator, id:E7C0A564-5F33-4F86-A43B-D0E885380741, OS:17.0, name:iPhone 14 Pro Max }
 		{ platform:iOS Simulator, id:731D5C2A-E944-405D-B7E4-DFDA0ECB7ED8, OS:17.0, name:iPhone 15 }
 		{ platform:iOS Simulator, id:731D5C2A-E944-405D-B7E4-DFDA0ECB7ED8, OS:17.0, name:iPhone 15 }
 		{ platform:iOS Simulator, id:B58EF098-31FB-46CB-A1DC-7519C6F6E6B0, OS:17.0, name:iPhone 15 Plus }
 		{ platform:iOS Simulator, id:B58EF098-31FB-46CB-A1DC-7519C6F6E6B0, OS:17.0, name:iPhone 15 Plus }
 		{ platform:iOS Simulator, id:D5C2AFB0-FFEE-4D20-BA58-CD3684D1CDAF, OS:17.0, name:iPhone 15 Pro }
 		{ platform:iOS Simulator, id:D5C2AFB0-FFEE-4D20-BA58-CD3684D1CDAF, OS:17.0, name:iPhone 15 Pro }
 		{ platform:iOS Simulator, id:83B8DB5A-F63D-49F9-8652-4D33A535D03D, OS:17.0, name:iPhone 15 Pro Max }
 		{ platform:iOS Simulator, id:83B8DB5A-F63D-49F9-8652-4D33A535D03D, OS:17.0, name:iPhone 15 Pro Max }
 		{ platform:iOS Simulator, id:C05E571A-3DE3-42B1-B356-8459F34402D4, OS:17.0, name:iPhone SE (3rd generation) }
 		{ platform:iOS Simulator, id:C05E571A-3DE3-42B1-B356-8459F34402D4, OS:17.0, name:iPhone SE (3rd generation) }
```

Does not to appear to be specific to a particular device, seems to be happening to all of the iOS 17 devices. Also does not happen consistently.

Here are a few examples:

https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_arm64_ios%20flavors_test_ios_xcode_debug/1152/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_arm64_ios%20flavors_test_ios_xcode_debug/1162/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_arm64_ios%20flavors_test_ios_xcode_debug/1168/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_ios%20flutter_gallery_ios__start_up_xcode_debug/2409/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_ios%20integration_ui_ios_driver_xcode_debug/2413/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_ios%20integration_ui_ios_driver_xcode_debug/2416/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_ios%20integration_ui_ios_driver_xcode_debug/2420/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_ios%20microbenchmarks_ios_xcode_debug/1848/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_ios%20microbenchmarks_ios_xcode_debug/1853/overview
https://ci.chromium.org/ui/p/flutter/builders/staging/Mac_ios%20microbenchmarks_ios_xcode_debug/1876/overview

### Steps to reproduce

_No response_

### Expected results

_No response_