@@ -112,11 +112,21 @@ - (void)publishServiceProtocolPort:(NSString*)uri {
112112 htons (port), txtData.length , txtData.bytes , registrationCallback, NULL );
113113
114114 if (err != 0 ) {
115- FML_LOG (ERROR) << " Failed to register observatory port with mDNS." ;
115+ FML_LOG (ERROR) << " Failed to register observatory port with mDNS with error " << err << " ." ;
116116 if (@available (iOS 14.0 , *)) {
117- FML_LOG (ERROR) << " Make sure the 'NSBonjourServices' key is set in your Info.plist for '"
118- << registrationType << " ' for the Debug/Profile configurations."
119- << " (See also: https://developer.apple.com/news/?id=0oi77447)" ;
117+ FML_LOG (ERROR)
118+ << " ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n "
119+ << " On iOS 14+, local network broadcast in apps need to be declared in "
120+ << " the app's Info.plist. Debug and profile Flutter apps and modules host "
121+ << " VM services on the local network to support debugging features such "
122+ << " as hot reload and DevTools.\n\n To make your Flutter app or module "
123+ << " attachable and debuggable, add a '" << registrationType << " ' value "
124+ << " to the 'NSBonjourServices' key in your Info.plist for the Debug/"
125+ << " Profile configurations.\n\n "
126+ << " For more information, see "
127+ // Update link to a specific header as needed.
128+ << " https://flutter.dev/docs/development/add-to-app/ios/project-setup"
129+ << " \n ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒" ;
120130 }
121131 } else {
122132 DNSServiceSetDispatchQueue (_dnsServiceRef, dispatch_get_main_queue ());
0 commit comments