Mac Build Agent不再连接/构建

时间:2016-12-20 08:49:34

标签: xamarin xamarin.ios build-agent

最近两个月工作得很好(在Mac上手动安装Xamarin因为VS / SSH安装没有工作),有些事情已经破裂。 OS X和Xamarin都进行了更新,但我想的是次要的。猜猜我最后一次接受更新时我没有理由!

无论如何,这里是相关的%LOCALAPPDATA%\Xamarin\Logs\14.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 Agent登录的用户一样。我尝试删除Mac的XMA文件夹和PC的MonoTouch,但没有效果。

我也试过安装了8.2.1 XCode更新并且它做了一些事情,但我最终回到了与上面相同的状态。这是暂时不同的东西。注意如何报告没有错误,它成功设置了一秒钟,但随后关闭了Build Agent窗口并回到抱怨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]

非常感谢任何帮助!我在这里有点疯狂。

2 个答案:

答案 0 :(得分:2)

尝试在Mac上杀死Xamarin进程(Xamarin代理):

grunt.task.requires('A')

显示进程列表使用:

kill -9 {Xamarin PID}

答案 1 :(得分:0)

最终通过在我的Mac上安装兼容版本的Xamarin.iOS来实现这一目标。我曾尝试降级我的PC版本,但这不起作用。我在Xamarin's site上找到了一个工作版本,单击查看所有版本,然后在Xamarin.iOS下选择10.3 - &gt; OS X。