Mac 不再构建代理 connecting/building
Mac Build Agent no longer connecting/building
过去两个月工作正常(在 Mac 上手动安装 Xamarin 之后,因为 VS/SSH 安装不起作用),有些东西坏了。 OS X 和 Xamarin 都已更新,但我认为是次要的。猜猜这是我最后一次没有理由的更新!
无论如何,这里是相关的 %LOCALAPPDATA%\Xamarin\Logs.0
日志条目:
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:28.6561] Starting connection to Mac macmini...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:30.6133] Starting Broker 4.2.1.73 in port 59693...
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:32.9003] MacServer State transition from SshConnectingState to SshConnectedState on macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:33.2553] Connection successfully established with the Mac macmini:59693
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:33.5408] MacServer State transition from SshConnectedState to AgentsStartingState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:33.7448] Starting agents on Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:34.5553] Starting Agent IDB 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:34.7538] Starting Agent Build 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:35.6074] Starting Agent Designer 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:36.8564] Agent Build 4.2.1.73 is running
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:39.9828] Agent IDB 4.2.1.73 is running
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:41.2470] MacServer State transition from AgentsStartingState to DisconnectedState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:41.4320] Disconnected from Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:41.6010] The underlying client has been closed
Xamarin.Messaging.Client.Ssh.SshCommandRunner Warning: 0 : [2016-12-17 00:06:41.8105] Exception executing 'ls "/tmp/com.xamarin.2016-12-16__23-07-38.43884.designer"'
Renci.SshNet.Common.SshConnectionException: Client not connected.
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
at Renci.SshNet.Session.Renci.SshNet.ISession.WaitOnHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.ChannelSession.Open()
at Renci.SshNet.SshCommand.BeginExecute(AsyncCallback callback, Object state)
at Xamarin.Messaging.Client.Ssh.SshCommandRunner.<>c__DisplayClass6_0.b__0(AsyncCallback callback, Object state)
at System.Threading.Tasks.TaskFactory1.FromAsyncImpl(Func3 beginMethod, Func2 endFunction, Action1 endAction, Object state, TaskCreationOptions creationOptions)
at Xamarin.Messaging.Client.Ssh.SshCommandRunner.d__6.MoveNext()
如您所见,SSH 本身运行良好。我可以通过 SSH 登录并访问这些路径,就像我提供给 Mac 代理登录的同一用户一样。我尝试删除 Mac 的 XMA 文件夹和 PC 的 MonoTouch,但没有效果。
我也尝试安装了 8.2.1 XCode 更新并且它做了一些事情,但我最终还是回到了与上面相同的状态。这是暂时不同的地方。请注意如何没有报告错误,它成功设置了一秒钟,但随后关闭了构建代理 window 并返回抱怨 ls.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:19:56.3313] MacServer State transition from DisconnectedState to SshConnectingState on macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:19:56.5134] Starting connection to Mac macmini...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:05.6625] Starting Broker 4.2.1.73 in port 55623...
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:11.5814] MacServer State transition from SshConnectingState to SshConnectedState on macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:11.7629] Connection successfully established with the Mac macmini:55623
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:11.9821] MacServer State transition from SshConnectedState to AgentsStartingState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:12.1686] Starting agents on Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:13.7446] Starting Agent IDB 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:13.9521] Starting Agent Build 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:16.3318] Agent Build 4.2.1.73 is running
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:19.6409] Starting Agent Designer 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:31.1329] Agent IDB 4.2.1.73 is running
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:32.3954] Agent Designer 4.2.1.73 is running
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:32.6164] MacServer State transition from AgentsStartingState to ConnectedState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:32.7889] Connected to the Mac macmini (192.168.1.88) with Full support.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:33.7967] MacServer State transition from ConnectedState to DisconnectedState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:34.0062] Disconnected from Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:34.1737] The underlying client has been closed
当我尝试 运行 使用 MSBuild 手动构建时,这是我得到的错误。请注意,Info.plist 存在于 8112c4... 目录中,但缺少整个 bin 子树。
"c:\src\GitHub\SarTag\SarTag.sln" (default target) (1) -> "c:\src\GitHub\SarTag\Beacon\Beacon.iOS\Beacon.iOS.csproj" (default target) (11) -> C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(662,3): error : Could not load Info.plist: Could not find a part of the path "/Users/eliot/Library/Caches/Xamarin/mtbs/builds/Beacon.iOS/8112c45fa1883d91f42789034e2e3d3c/bin/iPhoneSimulator/Debug/Beacon.iOS.app/Info.plist". [c:\src\GitHub\SarTag\Beacon\Beacon.iOS\Beacon.iOS.csproj]
如有任何帮助,我们将不胜感激!我在这里有点疯狂。
尝试终止 Mac 上的 Xamarin 进程(Xamarin 代理):
kill -9 {Xamarin PID}
要显示进程列表,请使用:
ps aux
通过在我的 Mac 上安装 Xamarin.iOS 的兼容版本,最终实现了此功能。我曾尝试降级我的 PC 版本,但那没有用。我在 Xamarin's site 上找到了一个工作版本,单击查看所有版本,然后在 Xamarin.iOS 下选择 10.3 --> OS X.
过去两个月工作正常(在 Mac 上手动安装 Xamarin 之后,因为 VS/SSH 安装不起作用),有些东西坏了。 OS X 和 Xamarin 都已更新,但我认为是次要的。猜猜这是我最后一次没有理由的更新!
无论如何,这里是相关的 %LOCALAPPDATA%\Xamarin\Logs.0
日志条目:
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:28.6561] Starting connection to Mac macmini...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:30.6133] Starting Broker 4.2.1.73 in port 59693...
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:32.9003] MacServer State transition from SshConnectingState to SshConnectedState on macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:33.2553] Connection successfully established with the Mac macmini:59693
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:33.5408] MacServer State transition from SshConnectedState to AgentsStartingState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:33.7448] Starting agents on Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:34.5553] Starting Agent IDB 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:34.7538] Starting Agent Build 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:35.6074] Starting Agent Designer 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:36.8564] Agent Build 4.2.1.73 is running
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:39.9828] Agent IDB 4.2.1.73 is running
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:41.2470] MacServer State transition from AgentsStartingState to DisconnectedState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-17 00:06:41.4320] Disconnected from Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-17 00:06:41.6010] The underlying client has been closed
Xamarin.Messaging.Client.Ssh.SshCommandRunner Warning: 0 : [2016-12-17 00:06:41.8105] Exception executing 'ls "/tmp/com.xamarin.2016-12-16__23-07-38.43884.designer"'
Renci.SshNet.Common.SshConnectionException: Client not connected.
at Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
at Renci.SshNet.Session.Renci.SshNet.ISession.WaitOnHandle(WaitHandle waitHandle)
at Renci.SshNet.Channels.ChannelSession.Open()
at Renci.SshNet.SshCommand.BeginExecute(AsyncCallback callback, Object state)
at Xamarin.Messaging.Client.Ssh.SshCommandRunner.<>c__DisplayClass6_0.b__0(AsyncCallback callback, Object state)
at System.Threading.Tasks.TaskFactory1.FromAsyncImpl(Func3 beginMethod, Func2 endFunction, Action1 endAction, Object state, TaskCreationOptions creationOptions)
at Xamarin.Messaging.Client.Ssh.SshCommandRunner.d__6.MoveNext()
如您所见,SSH 本身运行良好。我可以通过 SSH 登录并访问这些路径,就像我提供给 Mac 代理登录的同一用户一样。我尝试删除 Mac 的 XMA 文件夹和 PC 的 MonoTouch,但没有效果。
我也尝试安装了 8.2.1 XCode 更新并且它做了一些事情,但我最终还是回到了与上面相同的状态。这是暂时不同的地方。请注意如何没有报告错误,它成功设置了一秒钟,但随后关闭了构建代理 window 并返回抱怨 ls.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:19:56.3313] MacServer State transition from DisconnectedState to SshConnectingState on macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:19:56.5134] Starting connection to Mac macmini...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:05.6625] Starting Broker 4.2.1.73 in port 55623...
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:11.5814] MacServer State transition from SshConnectingState to SshConnectedState on macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:11.7629] Connection successfully established with the Mac macmini:55623
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:11.9821] MacServer State transition from SshConnectedState to AgentsStartingState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:12.1686] Starting agents on Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:13.7446] Starting Agent IDB 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:13.9521] Starting Agent Build 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:16.3318] Agent Build 4.2.1.73 is running
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:19.6409] Starting Agent Designer 4.2.1.73...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:31.1329] Agent IDB 4.2.1.73 is running
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:32.3954] Agent Designer 4.2.1.73 is running
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:32.6164] MacServer State transition from AgentsStartingState to ConnectedState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:32.7889] Connected to the Mac macmini (192.168.1.88) with Full support.
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:33.7967] MacServer State transition from ConnectedState to DisconnectedState on macmini (192.168.1.88)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-12-20 00:20:34.0062] Disconnected from Mac macmini (192.168.1.88)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-12-20 00:20:34.1737] The underlying client has been closed
当我尝试 运行 使用 MSBuild 手动构建时,这是我得到的错误。请注意,Info.plist 存在于 8112c4... 目录中,但缺少整个 bin 子树。
"c:\src\GitHub\SarTag\SarTag.sln" (default target) (1) -> "c:\src\GitHub\SarTag\Beacon\Beacon.iOS\Beacon.iOS.csproj" (default target) (11) -> C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(662,3): error : Could not load Info.plist: Could not find a part of the path "/Users/eliot/Library/Caches/Xamarin/mtbs/builds/Beacon.iOS/8112c45fa1883d91f42789034e2e3d3c/bin/iPhoneSimulator/Debug/Beacon.iOS.app/Info.plist". [c:\src\GitHub\SarTag\Beacon\Beacon.iOS\Beacon.iOS.csproj]
如有任何帮助,我们将不胜感激!我在这里有点疯狂。
尝试终止 Mac 上的 Xamarin 进程(Xamarin 代理):
kill -9 {Xamarin PID}
要显示进程列表,请使用:
ps aux
通过在我的 Mac 上安装 Xamarin.iOS 的兼容版本,最终实现了此功能。我曾尝试降级我的 PC 版本,但那没有用。我在 Xamarin's site 上找到了一个工作版本,单击查看所有版本,然后在 Xamarin.iOS 下选择 10.3 --> OS X.