System.Exception AMDeviceNotificationSubscribe returned ...
- PDF for offline use
Let us know how you feel about this
last updated: 2017-03
This issue has been resolved in recent versions of Xamarin. However, if the issue occurs on the latest version of the software, please file a new bug with your full versioning information and full build log output.
- Kill the
usbmuxdprocess so that the system will restart it:
sudo killall -QUIT usbmuxd
- If that doesn't solve the problem, reboot the Mac.
Exception: Exception type: System.Exception AMDeviceNotificationSubscribe returned: 3892314211 at Xamarin.MacDev.IPhoneDeviceManager.SubscribeToNotifications () [0x00000] in <filename unknown="">:0 at Xamarin.MacDev.IPhoneDeviceManager.StartWatching (Boolean useOwnRunloop) [0x00000] in <filename unknown="">:0 at Mtb.Server.DeviceListener.Start () [0x00000] in <filename unknown="">:0 at Mtb.Application.MainClass.RunDeviceListener () [0x00000] in <filename unknown="">:0 at Mtb.Application.MainClass.Main (System.String args) [0x00000] in <filename unknown="">:0
This message can appear in an error dialog when you first start Visual Studio for Mac, or in the
mtbserver.log file in the Xamarin.iOS Build Host app (Xamarin.iOS Build Host > View Build Host Log).
Note that this is an uncommon problem. If Visual Studio is having trouble connecting to the Mac build host, there are other errors that are more likely to appear in the
Errors in system.log
In some cases the following two error messages might also appear repeatedly in
17:17:11.369 usbmuxd: dnssd_clientstub ConnectToServer: socket failed 24 Too many open files 17:17:11.369 com.apple.usbmuxd: _BrowseReplyReceivedCallback Error doing DNSServiceResolve(): -65539
One guess at the root cause of the error is that the OS X system services responsible for reporting iOS device and simulator information can in rare cases enter an unexpected state. Xamarin cannot interact properly with the system services in this state. Rebooting the computer restarts the system services and solves the problem.
Based on the errors from
system.log it appears that this problem might be related to Bonjour (
mDNSResponder). Changing between different WiFi networks seems to increase the chances of hitting the problem.