1

过去两个月运行良好(在 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 本身运行良好。而且我可以像我提供给 Mac 代理登录的同一用户一样通过 SSH 进入并访问这些路径。我试过删除 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]

任何帮助将不胜感激!我在这里有点疯了。

4

2 回答 2

2

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

kill -9 {Xamarin PID}

显示进程列表使用:

ps aux
于 2016-12-20T12:01:19.497 回答
0

最后通过在我的 Mac 上安装兼容版本的 Xamarin.iOS 来完成这项工作。我曾尝试降级我的 PC 版本,但没有奏效。我在Xamarin 的网站上找到了一个工作版本,单击查看所有版本,然后在 Xamarin.iOS --> OS X 下选择 10.3。

于 2016-12-31T05:23:39.923 回答