Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Steps to reproduce this issue:
1. Install MTVS.
2. Create or open any iOS application.
Actual result: When user create or open any iOS project on Visual Studio, It gives an error pop up 'Bonjour initialization failure' and Build Host dialog popup appears which is searching Mac server.
Expected result: User should able to create or open any iOS application and should able to connect to mac server.
It is possible that the Bonjour service failed to start during installation. Windows Installer service should have offered to restart the machine in such case. Restarting Windows manually or starting the Xamarin Bonjour Service manually from the Control Panel should work as a fix.
Looking at the screencast, we have a number of opportunities to tell the user the right actions to take here.
Either the diagnostic tool step or the bonjour error should tell the user to restart the service and/or restart their computer.
Putting this on the Big Splash in case we can fix this with just a text update on the error message.
If not, please put to V2
Pj Unfortunately the diagnostics does additional steps to determine networks issues.
I think it would provide a better UX, but in V2 where we can maybe use the diagnositics classes to determine if everything is ok first before instantiating ZeroConfDiscovery().
Jose any suggestions?
I'll move to Splash 2.
We need to know if Xamarin Bonjour Service is installed in the target machine.
Jose, it won't be if Apple Bonjour exists
*** Bug 12119 has been marked as a duplicate of this bug. ***
Is there a fix for this problem available?
I've tried to manually delete the registry keys which were related to the Bonjour Service and which haven't been deleted after uninstalling all Xamarin software.
This broke my Windows system and I had to use Windows Restore to go back to a working system snapshot. Now that I know that iTunes or other Apple Software is using Bonjour, I might have the reason why my system broke.
We believe these issues are caused by the fact that there is a Apple/Xamarin Bonjour Service on the machine, but it may not be working correctly. For those with either not working, a repair may be in order.
So to that end the change I've just push for the iOS installer will check to see if Apple Bonjour is already installed.
If it is installed and not running, before the installation finishes, it will attempt to start the service.
If the service starts within 60 seconds, then we know Bonjour is running.
If the service failes in some way, a registry entry will be created in
HKEY_LOCAL_MACHINE\SOFTWARE\Xamarin\iOS\IsBonjourInstalled That will list the state of the Bonjour and a message, hopefully explaining the issue.
In this scenario, the user will need to fix their Bonjour installation before using the iOS product on Windows.
If no Bonjour service is found, just as it does now, it should install a Xamarin Bonjour service, and start it before the installation completes.
The only other changes is that to avoid clashes with subsequent Bonjour installers, when Xamarin.iOS is uninstalled. It will leave the Bonjour Service behind, as we risk breaking things due to the fact that our and Apples use the same name. Using different names would cuase a responder conflict.
Heyo Dominique, in your testing for the fix, were you ever able to reproduce this issue on command? (Aka, get into the "there is a Apple/Xamarin Bonjour Service on the machine, but it may not be working correctly" state?
I want to make sure we can properly verify the fix.
*** Bug 12004 has been marked as a duplicate of this bug. ***
Today, we have checked this issue with latest builds:
Windows 8 and 7
X.iOS 188.8.131.52(Mac Server)
Now, On creating iOS application on VS, it does not give error pop up 'Bonjour initialization failure'. User is able connect to mac server successfully and able to run application on mac server successfully.
All the above messages seem to suggest that this problem has been fixed and yet here I am with this same problem.
Service 'Bonjour Service' failed to start.
How can I fix this?