Flutter can’t discover iOS simulator when operating by way of Android Studio

0
17
Flutter can’t discover iOS simulator when operating by way of Android Studio


When attempting to run my Flutter venture on iOS simulator by way of Android Studio, I get this error:

Uncategorized (Xcode): Unable to discover a system matching the supplied vacation spot specifier:
    { id:xxx }

The requested system couldn't be discovered as a result of no obtainable gadgets matched the request.

Accessible locations for the "Runner" scheme:
    { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:xxx, title:My Mac }
    { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, title:Any iOS Gadget }
    { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, title:Any iOS Simulator Gadget }

Couldn't construct the applying for the simulator.
Error launching utility on iPad (tenth technology).

This labored earlier right now and I believe it was upgrading Flutter the broke it. Similar error occurs for all my Flutter tasks.

Working the venture by way of Xcode works completely! Additionally operating by way of Android Studio to actual system works.

  • Flutter model: 3.25.5
  • Xcode model: 16.1
  • Mac: Apple M1 Professional, Sequoia 15.1.1
  • Android Studio model: Meerkat | 2024.3.1 Nightly

Flutter physician

[✓] Flutter (Channel steady, 3.24.5, on macOS 15.1.1 24B91 darwin-arm64, locale en-NO)
[✓] Android toolchain - develop for Android gadgets (Android SDK model 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the net
[!] Android Studio (model unknown)
    ✗ Unable to find out Android Studio model.
[✓] IntelliJ IDEA Neighborhood Version (model 2024.3)
[✓] VS Code (model 1.80.0)
[✓] Related system (6 obtainable)
[✓] Community assets

All of the issues I’ve tried with out success

  • flutter improve/clear/get
  • Delete Pods & Podfile.lock and pod deintegrate/set up --repo-update
  • Ensuring I’ve the latest Xcode and iOS put in
  • Opening completely different simulators with completely different iOS
  • Change goal to Debug in Xcode
  • Change vacation spot of Derived Knowledge in Xcode
  • Change “supported platforms” from Iphoneos to iOS in Xcode
  • New Runner Scheme… in Xcode
  • Delete all Derived Knowledge and rm -R ~/Library/Developer/CoreSimulator/Caches
  • sudo xcode-select --switch /Purposes/Xcode.app/Contents/Developer and sudo xcodebuild -runFirstLaunch
  • flutter downgrade
  • flutter channel steady/grasp + flutter improve
  • Ensuring I’ve just one occasion of Android Studio and Xcode
  • Re-clone repo
  • Reinstalled Xcode utterly

Issues I’ve not tried, however significantly contemplating

  • Throw my Mac out of the window
  • Throw myself out of the window
  • Stop my job, transfer to a desert island and begin a 100% non-technical farm

Sidenote: Looks like Android studio struggles with discovering/itemizing the iOS gadgets and if I click on “Refresh”, it takes a very long time for the open simulators to seem.

If anybody on the market has discovered an answer to this just lately, please attain out!!!

LEAVE A REPLY

Please enter your comment!
Please enter your name here