Victoria Ashworth
abf8361ad4
Don't uninstall before retrying to connect during app launch (#134542)
When retrying to connect to the device during app launch, don't uninstall the app first.
Latest test flake for https://github.com/flutter/flutter/issues/120808:
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8770202475999850785/+/u/run_hot_mode_dev_cycle_ios__benchmark/test_stdout
Shows that it uninstalled and then tried debugging and failed, which would make sense since the app wasn't installed anymore.
```
[2023-09-11 18:02:24.555646] [STDOUT] stdout: [ +6 ms] Lost connection to device. Trying to connect again...
[2023-09-11 18:02:24.556949] [STDOUT] stdout: [ +1 ms] executing: /opt/s/w/ir/x/w/recipe_cleanup/tmp53fs1szo/flutter sdk/bin/cache/artifacts/libimobiledevice/idevicesyslog -u 00008030-00144DA10185402E
[2023-09-11 18:02:24.557323] [STDOUT] stdout: [ ] executing: script -t 0 /dev/null /opt/s/w/ir/x/w/recipe_cleanup/tmp53fs1szo/flutter sdk/bin/cache/artifacts/ios-deploy/ios-deploy --id 00008030-00144DA10185402E --bundle build/ios/iphoneos/Flutter Gallery.app --app_deltas build/ios/app-delta --uninstall --noinstall --debug --no-wifi --args --enable-dart-profiling --disable-vm-service-publication --enable-checked-mode --verify-entry-points
[2023-09-11 18:02:24.578010] [STDOUT] stdout: [ +20 ms] [....] Waiting for iOS device to be connected
[2023-09-11 18:02:24.712631] [STDOUT] stdout: [ +134 ms] [....] Using 00008030-00144DA10185402E (N104AP, iPhone 11, iphoneos, arm64e, 16.2, 20C65) a.k.a. 'iPhone 11'.
[2023-09-11 18:02:24.712725] [STDOUT] stdout: [ ] ------ Uninstall phase ------
[2023-09-11 18:02:24.818293] [STDOUT] stdout: [ +105 ms] [ OK ] Uninstalled package with bundle id io.flutter.examples.gallery
[2023-09-11 18:02:24.906833] [STDOUT] stdout: [ +88 ms] ------ Debug phase ------
[2023-09-11 18:02:24.906924] [STDOUT] stdout: [ ] Starting debug of 00008030-00144DA10185402E (N104AP, iPhone 11, iphoneos, arm64e, 16.2, 20C65) a.k.a. 'iPhone 11' connected through USB...
[2023-09-11 18:02:25.285252] [STDOUT] stdout: [ +378 ms] [ 0%] Looking up developer disk image
[2023-09-11 18:02:25.529937] [STDOUT] stdout: [ +244 ms] [ 90%] Mounting developer disk image
[2023-09-11 18:02:25.545261] [STDOUT] stdout: [ +15 ms] [ 95%] Developer disk image already mounted
[2023-09-11 18:02:25.587923] [STDOUT] stdout: [ +42 ms] Detected path to iOS debug symbols: "Symbol Path: /Users/swarming/Library/Developer/Xcode/iOS DeviceSupport/16.2 (20C65) arm64e/Symbols"
[2023-09-11 18:02:25.857177] [STDOUT] stdout: [ +269 ms] Script started, output file is /dev/null
[2023-09-11 18:02:25.857259] [STDOUT] stdout: [ ] Script done, output file is /dev/null
[2023-09-11 18:02:25.857511] [STDOUT] stdout: [ ] ios-deploy exited with code 0
[2023-09-11 18:02:25.858066] [STDOUT] stderr: [ ] Could not run build/ios/iphoneos/Flutter Gallery.app on 00008030-00144DA10185402E.
[2023-09-11 18:02:25.858130] [STDOUT] stderr: [ ] Try launching Xcode and selecting "Product > Run" to fix the problem:
[2023-09-11 18:02:25.858214] [STDOUT] stderr: [ ] open ios/Runner.xcworkspace
[2023-09-11 18:02:25.858537] [STDOUT] stdout: [ ] Installing and launching... (completed in 52.4s)
[2023-09-11 18:02:25.858956] [STDOUT] stderr: [ ] Error launching application on iPhone 11.
```
2023-09-18 19:55:06 +00:00
..
2023-09-05 18:00:07 +00:00
2023-09-13 13:05:29 -07:00
2023-09-15 12:23:08 -07:00
2023-08-10 17:51:05 +00:00
2023-09-10 08:07:13 +00:00
2023-07-07 13:55:35 -07:00
2023-06-15 20:38:04 +00:00
2023-08-10 20:53:08 +00:00
2023-05-26 23:34:36 +00:00
2023-09-05 18:00:07 +00:00
2023-09-18 19:55:06 +00:00
2023-09-18 11:13:37 +00:00
2023-09-15 12:23:08 -07:00
2023-09-18 11:13:37 +00:00
2023-07-20 05:01:24 +00:00
2023-03-22 22:53:49 +00:00
2023-09-12 22:49:05 +00:00
2023-09-12 20:20:04 +00:00
2023-09-10 08:07:13 +00:00
2023-06-01 14:51:30 +00:00
2023-09-10 08:07:13 +00:00
2023-08-31 14:37:46 -07:00
2023-06-15 00:20:30 +00:00
2023-01-24 13:19:09 -08:00
2023-06-09 01:46:24 +00:00
2023-07-06 00:09:01 +00:00
2023-08-16 22:24:51 +00:00
2023-06-09 21:20:50 +00:00
2023-06-09 21:20:50 +00:00
2023-06-09 21:20:50 +00:00
2023-06-09 21:20:50 +00:00
2023-01-13 19:43:27 +00:00
2023-08-16 22:24:51 +00:00
2023-08-10 21:48:06 +00:00
2023-08-09 23:26:05 +00:00
2023-06-13 19:28:06 +00:00
2023-07-24 17:22:25 +00:00
2023-03-20 22:23:23 -07:00
2023-09-10 08:07:13 +00:00
2023-06-07 19:48:42 +00:00
2022-12-02 14:13:40 -08:00
2023-01-20 09:48:26 -08:00
2023-02-03 19:24:41 +00:00
2023-01-23 21:43:08 +00:00
2023-07-17 08:42:13 +00:00
2023-07-31 20:42:11 +00:00
2023-07-21 19:09:25 +00:00
2023-03-28 15:08:57 +00:00
2023-07-13 16:26:02 +00:00
2023-09-10 08:07:13 +00:00
2023-08-09 19:25:12 +00:00
2023-05-20 06:29:21 +00:00
2023-09-10 08:07:13 +00:00
2023-09-10 08:07:13 +00:00
2023-07-07 13:55:35 -07:00
2023-09-10 08:07:13 +00:00
2023-04-20 13:46:33 -04:00
2023-05-23 19:59:20 +00:00
2023-07-18 13:59:48 -07:00
2023-09-10 08:07:13 +00:00
2023-04-14 02:01:21 +00:00
2023-03-06 22:37:55 +00:00
2023-08-09 19:25:12 +00:00
2023-07-18 13:59:48 -07:00
2023-01-09 10:33:03 -08:00
2023-05-15 11:07:30 +02:00
2023-09-10 08:07:13 +00:00
2023-09-15 21:01:05 +00:00
2023-02-28 11:57:04 -05:00
2023-06-28 00:16:13 +05:30
2023-09-10 08:07:13 +00:00
2022-12-15 11:59:34 -08:00
2023-09-10 08:07:13 +00:00
2023-07-24 17:22:25 +00:00
2023-08-08 21:43:00 +00:00
2023-08-24 21:54:59 +00:00
2023-09-12 20:20:04 +00:00
2023-05-19 15:00:53 +00:00
2023-09-06 17:22:13 +00:00
2023-08-31 21:50:54 +00:00
2023-01-30 19:29:13 +00:00
2023-09-05 18:00:07 +00:00