我们在Xamarin.iOS中创建故事板时遇到问题。我们已经与Mac配对,并且在VS GUI上显示已连接。 当我们尝试创建(或在新项目中打开现有的故事板)时,我们会遇到相同的错误:
System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> MonoTouch.Design.Client.InvalidSessionException: Error in the application.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\79\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 235
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\79\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 252
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A\_work\79\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 111
at MonoTouch.Design.Client.ServerProcessConnection.<CreateSessionAsync>b__28_0() in E:\A\_work\79\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 116
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass289_1`1.<EnsureSession>b__1(Task`1 t) in E:\A\_work\79\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 2070
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass289_0`1.<EnsureSession>b__0() in E:\A\_work\79\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 2136
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
[Truncated here]
Windows 10和Catalina上的VS版本均为最新版本(无法更新),Xcode为11.3版
我已经在线阅读了很多文章,说要更新并重新启动IDE,这应该没问题,但是我无能为力...
有人知道如何解决吗?
答案 0 :(得分:0)
问题似乎是在macOS版本中。
我已经与一些使用不同类型软件(Flash Builder)的同事进行了交谈,他说他在Catalina macOS上也遇到了类似的问题。
所以我改回 Mojave ,更新为10.4.16 。并安装了Xcode和VSforMac,它终于可以使用了(或适用于iPhone 8 iOS 13)