Closed hainhathoang88 closed 3 weeks ago
Hi @hainhathoang88, do you get this issue only with the simulator or do you get it with physical devices as well? Do you experience this with the flutter counter app? Or do you get it only with a complex project?
Hi @danagbemava-nc ,
I only see this issue after running multiple Unit Test, so I haven't seen it with Flutter Counter App. And I don't think I have encountered this with physical devices yet.
Hi @hainhathoang88, does this only occur when you run unit tests with vscode? What happens if you use the terminal to manually run the unit tests? Also, can you provide a complete minimal reproducible code sample, preferably without any third party packages, so that we can properly investigate this?
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Steps to reproduce
https://github.com/flutter/flutter/issues/138713 This exact issue happens to me as well.
Step:
Expected results
At step 2, build and run successfully At step 4 and 5, still build and run successfully
Actual results
At step 4, stuck forever on Flutter: Launching.... At step 5: Terminal stocks at "executing: /usr/bin/arch -arm64e xcrun simctl spawn 8138FDEC-2DDF-4ED3-952E-6A1975BB7D32 log stream --style json --predicate eventType = logEvent AND processImagePath ENDSWITH...."
Note: If I delete the project, then clone again, everything works fine until after I run a unit test
Code sample
Code sample
```dart [Paste your code here] ```Screenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console [output.txt](https://github.com/user-attachments/files/16369675/output.txt) ```Flutter Doctor output
Doctor output
```console [✓] Flutter (Channel stable, 3.22.2, on macOS 14.1.2 23B92 darwin-arm64, locale en-VN) • Flutter version 3.22.2 on channel stable at /Users/haihoang/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (7 weeks ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3 [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/haihoang/Library/Android/sdk ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 15.3) • Xcode at /Applications/Xcode_15_3.app/Contents/Developer • Build 15E204a • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2023.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) [✓] Android Studio (version 2023.3) • Android Studio at /Applications/Android Studio 2.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160) [✓] VS Code (version 1.91.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.92.0 [✓] Connected device (6 available) • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 14 (API 34) (emulator) • Hai's iPhone (mobile) • 00008101-001C094822C3003A • ios • iOS 16.4.1 20E252 • iPhone 15 Pro (mobile) • 8138FDEC-2DDF-4ED3-952E-6A1975BB7D32 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.1.2 23B92 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.1.2 23B92 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 126.0.6478.183 ! Error: Nhat Hai’s Apple Watch needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked. (code 1) [✓] Network resources • All expected network resources are available. ! Doctor found issues in 1 category. ```