Skip to content

Instantly share code, notes, and snippets.

@stefandevo
Created June 20, 2014 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefandevo/dd563c64391f6dad10da to your computer and use it in GitHub Desktop.
Save stefandevo/dd563c64391f6dad10da to your computer and use it in GitHub Desktop.
Xamarin.IOS Build Host troubleshooting
## Just as sanity check, make sure that the OS sees that the Xamarin.iOS Build Host app is running
In Terminal.app:
$ ps -x | grep Xamarin\.iOS | grep Applications
2627 ?? 0:02.17 /Applications/Xamarin.iOS Build Host.app/Contents/MacOS/Xamarin.iOS Build Host
## Use `lsof` to check if the Xamarin.iOS Build Host app `launchd` item is listening on port 5000
In Terminal.app:
$ lsof -i -P | grep -i listen
launchd 164 bzagaeski 39u IPv4 0x85c33c8d4928413f 0t0 TCP *:5000 (LISTEN)
launchd 164 bzagaeski 41u IPv6 0x85c33c8d4446ca5f 0t0 TCP *:5000 (LISTEN)
## Try re-running the `launchctl` command to unload + reload the launch daemon, just to be thorough
In Terminal.app:
$ launchctl unload -w /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
$ lsof -i -P | grep -i listen
$ launchctl load -w -F /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
$ lsof -i -P | grep -i listen
launchd 164 bzagaeski 41u IPv4 0x85c33c8d4763c13f 0t0 TCP *:5000 (LISTEN)
launchd 164 bzagaeski 43u IPv6 0x85c33c8d4446ca5f 0t0 TCP *:5000 (LISTEN)
$ launchctl list | grep xamarin
- 0 com.xamarin.mtvs.buildserver
2627 - com.xamarin.mtvs.buildservergui.65680
$ tail /private/var/log/system.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment