Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter iOS 14.0 build error: Failed to register observatory port with mDNS

I am implementing a mobile app using Flutter. When I try to run the app on iOS real device from Xcode, I get this error:

[VERBOSE-2:FlutterObservatoryPublisher.mm(115)] Failed to register observatory port with mDNS.

The app runs fine as long as the device is connected to the Mac and running from Xcode. But when I try to open it from the device Home Screen directly, it crashes.

This issue happens on iOS 14.0 and higher. It works fine on iOS 13.x.

like image 568
Amani Elsaed Avatar asked Dec 06 '20 14:12

Amani Elsaed


1 Answers

add this property info.plist

<key>NSBonjourServices</key>
<array>
    <string>_dartobservatory._tcp</string>
</array>
like image 144
chriskim Avatar answered Oct 25 '22 21:10

chriskim