In Info-Debug.plist only add the key NSBonjourServices
and set the value to an array with the string _dartobservatory._tcp.
Note Xcode will display this as “Bonjour services”.

    Optionally, add the key NSLocalNetworkUsageDescription set to your
desired customized permission dialog text.

In your target’s build settings, change the Info.plist File
(INFOPLIST_FILE) setting path from path/to/Info.plist to path/to/Info-$(CONFIGURATION).plist.

    
  
    
    


    This will resolve to the path Info-Debug.plist in Debug and
Info-Release.plist in Release.

    
  
    
    


    Alternatively, you can explicitly set the Debug path to Info-Debug.plist
and the Release path to Info-Release.plist.