Skip to content

Can not terminate ios simulator app from android studio #8223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PandaGeek1024 opened this issue May 26, 2025 · 0 comments
Open

Can not terminate ios simulator app from android studio #8223

PandaGeek1024 opened this issue May 26, 2025 · 0 comments

Comments

@PandaGeek1024
Copy link

PandaGeek1024 commented May 26, 2025

I created a simple sample project to reproduce that. When I click on stop button to terminate the app it doesn't work. This is getting really annoying.

Image

It throws below exception

Error: Unable to terminate com.example.flutterTester1 on 10117A3A-781B-420D-A3C5-906C46E3392B:
ProcessException: Process exited abnormally with exit code -2:

  Command: /usr/bin/arch -arm64e xcrun simctl terminate 10117A3A-781B-420D-A3C5-906C46E3392B com.example.flutterTester1
the Dart compiler exited unexpectedly.
Error waiting for a debug connection: The log reader failed unexpectedly
Error launching application on iPhone 16 Pro.

However, running the command in terminal does works
/usr/bin/arch -arm64e xcrun simctl terminate 10117A3A-781B-420D-A3C5-906C46E3392B com.example.flutterTester1

flutter doctor -v

[✓] Flutter (Channel stable, 3.32.0, on macOS 15.4.1 24E263 darwin-arm64, locale en-AU) [1,559ms]
    • Flutter version 3.32.0 on channel stable at /Users/jayhuang/fvm/versions/3.32.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision be698c48a6 (7 days ago), 2025-05-19 12:59:14 -0700
    • Engine revision 1881800949
    • Dart version 3.8.0
    • DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [3.1s]
    • Android SDK at /Users/jayhuang/Library/Android/sdk
    • Platform android-35, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [2.2s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [38ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2) [37ms]
    • 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 21.0.5+-13047016-b750.29)

[✓] IntelliJ IDEA Ultimate Edition (version 2025.1.1.1) [35ms]
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

[✓] VS Code (version 1.100.1) [10ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (4 available) [7.4s]
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 16 (API 36) (emulator)
    • iPhone 16 Pro (mobile)      • 10117A3A-781B-420D-A3C5-906C46E3392B • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-0 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 15.4.1 24E263 darwin-arm64
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 136.0.7103.114

[✓] Network resources [513ms]
    • All expected network resources are available.

• No issues found!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant