Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Last active December 15, 2015 06:39
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 rolfbjarne/c78abc10b909a6099c07 to your computer and use it in GitHub Desktop.
Save rolfbjarne/c78abc10b909a6099c07 to your computer and use it in GitHub Desktop.
commit a14e9a2040a4aaa32fb4c598f3876a343dd153ac
Author: Rolf Bjarne Kvinge <rolf@xamarin.com>
Date: Thu Mar 21 22:47:51 2013 +0100
[iPhone] Let the system find a free port to use for debugging.
Probably fixes this: http://forums.xamarin.com/discussion/comment/8565/#Comment_8565
diff --git a/MonoDevelop.IPhone/MonoDevelop.IPhone/Execution/IPhoneExecutionHandler.cs b/MonoDevelop.IPhone/MonoDevelop.IPhone/Execution/IPhoneExecutionHandler.cs
index c7a7602..1615f8f 100644
--- a/MonoDevelop.IPhone/MonoDevelop.IPhone/Execution/IPhoneExecutionHandler.cs
+++ b/MonoDevelop.IPhone/MonoDevelop.IPhone/Execution/IPhoneExecutionHandler.cs
@@ -338,7 +338,7 @@ namespace MonoDevelop.IPhone
{
bool isSim = device == null;
if (isSim) {
- return new IPhoneTcpCommandConnection (IPAddress.Loopback, IPhoneSettings.DebuggerPort);
+ return new IPhoneTcpCommandConnection (IPAddress.Loopback, 0);
} else if (IPhoneSettings.UseUsbDebugging) {
return new IPhoneUsbCommandConnection (device, IPhoneSettings.DebuggerPort);
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment