DEV Community

koreanDev
koreanDev

Posted on

Flutter iOS: Did Not Find a Dart VM Service — Fixed by Recreating the Xcode Runner Scheme

The Dart VM Service was not discovered after 60 seconds. This is taking much longer than expected... Open the Xcode window the project is opened in to ensure the app is running.

If the app is not running, try selecting "Product > Run" to fix the problem.

blah blah..

Error: Did not find a Dart VM Service advertised for com.app.myproject.

I got stuck on this error while building an iOS app in Android Studio. The strange thing was that the app built just fine in Xcode.
At first, I suspected it might be related to iOS local network permissions.

"Did not find a Dart VM Service" usually means the Flutter framework failed to connect over the local network. So I checked whether my Info.plist included the NSLocalNetworkUsageDescription key.

But the key was already included in my Info.plist file.

I decided to reinstall the app to retrigger the permission prompt. I deleted the app from my iPhone.

And I tried resetting the trust settings on my iPhone.
I went to Settings > General > Transfer or Reset iPhone > Reset > Reset Location & Privacy, then reconnected via USB to trigger the "Trust This Computer?" prompt again.

After tapping Trust, I launched the app — it came to the foreground, and the local network permission popup appeared. I allowed it.
But nothing happened. No connection. Flutter was still silent.

I can't remember every single thing I tried at that time. I tried many things to get it building on Android Studio.

At some point, I realized — I had switched from an iPhone 8 to an iPhone 12 right before this issue started. Both were my debugging devices, and I hadn't thought much about it at the time. That felt like the real clue.

I shared this suspicion with AI, and it confirmed that this is actually a common issue. When you change the target debug device, Xcode's internal project configuration can get corrupted — the Runner Scheme ends up still tied to the old device's settings.

So I went to Product > Scheme > Manage Schemes in Xcode, deleted the existing Runner scheme, and created a new one.

After that, the app finally built successfully on Android Studio — and kept working after restarts.

Top comments (0)