我们使用Visual Studio(Xamarin)来开发Apple应用程序。由于我安装了最新更新,因此Storyboard不会在Visual Studio中打开。
我尝试降级到最新版本,但这似乎不起作用。已重建,重新启动和卸载项目。
错误消息:
MonoTouch.Design.Client.CouldNotInitializeRendererException: Exception of type 'MonoTouch.Design.Client.CouldNotInitializeRendererException' was thrown.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 232
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 243
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A\_work\1898\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\1898\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()
...
...
...
[2019-10-11 15:43:30.7] INFO: [2019-10-11 15:43:30.6] INFO: Waiting for renderer to start... 300
[2019-10-11 15:43:30.9] INFO: [2019-10-11 15:43:30.9] ERROR: Could not initialize renderer
[2019-10-11 15:43:30.9] INFO: MonoTouch.Design.Client.CouldNotInitializeRendererException: The renderer never started, bailing out... ---> MonoTouch.Design.Client.RetryConnectionException ---> System.Net.Sockets.SocketException: Connection refused
[2019-10-11 15:43:30.9] INFO: at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x000b6] in <118907f5eb5f4e538f3e3bdd8361378f>:0
[2019-10-11 15:43:30.9] INFO: at Mono.Unix.UnixClient.Connect (Mono.Unix.UnixEndPoint remoteEndPoint) [0x00006] in <47e71035f6774c5fa65560f4ab0cc60e>:0
[2019-10-11 15:43:30.9] INFO: at (wrapper remoting-invoke-with-check) Mono.Unix.UnixClient.Connect(Mono.Unix.UnixEndPoint)
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.Mac.MacServerProcessConnection.SendRequestImpl (MonoTouch.Design.CommandRequest request) [0x0000d] in <75e4a400d63a46619c2379952ad9ffcc>:0
[2019-10-11 15:43:30.9] INFO: --- End of inner exception stack trace ---
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.Mac.MacServerProcessConnection.SendRequestImpl (MonoTouch.Design.CommandRequest request) [0x0001b] in <75e4a400d63a46619c2379952ad9ffcc>:0
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.ServerProcessConnection.SendRequestCore (MonoTouch.Design.CommandRequest request, System.Boolean throwIfNotRunning) [0x00050] in <3fb2608a4c644b7faeb25f7a26ae637f>:0
[2019-10-11 15:43:30.9] INFO: --- End of inner exception stack trace ---
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.ServerProcessConnection.SendRequestCore (MonoTouch.Design.CommandRequest request, System.Boolean throwIfNotRunning) [0x000c2] in <3fb2608a4c644b7faeb25f7a26ae637f>:0
[2019-10-11 15:43:30.9] INFO: at MonoTouch.Design.Client.ServerProcessConnection.SendRequest (MonoTouch.Design.CommandRequest req, System.Boolean throwIfNotRunning) [0x00000] in <3fb2608a4c644b7faeb25f7a26ae637f>:0
[2019-10-11 15:43:30.9] INFO: at CSProxyHost.MainClass.HandleMessage (MonoTouch.Design.CommandRequest message) [0x0015b] in <22267ef404cb4303b2debccd373e2a94>:0
[2019-10-11 15:43:30.9] INFO: Reloading: Server rendering completed in 61335ms
[2019-10-11 15:43:30.9] ERROR: EnsureSession (counter 1): System.AggregateException: One or more errors occurred. ---> MonoTouch.Design.Client.CouldNotInitializeRendererException: Exception of type 'MonoTouch.Design.Client.CouldNotInitializeRendererException' was thrown.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 232
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 243
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A\_work\1898\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\1898\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 inner exception stack trace ---
---> (Inner Exception #0) MonoTouch.Design.Client.CouldNotInitializeRendererException: Exception of type 'MonoTouch.Design.Client.CouldNotInitializeRendererException' was thrown.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 232
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A\_work\1898\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 243
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A\_work\1898\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\1898\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()<---
答案 0 :(得分:1)
欢迎您!
Report the bug,因为情节提要板应该使用Visual Studio打开。同时,您可以右键单击Visual Studio For Mac中的文件,然后使用“ Xcode Interface Builder”打开它。
答案 1 :(得分:-1)
当我尝试在Visual Studio 2019版本16.0.3中打开Main.Storyboard时遇到了类似的问题。自从我已经购买了二手Mac Book Pro以来,我就对其进行了研究。
在寻找解决方案的搜索中,我看到一条帖子,指出您至少需要Visual Studio 2019 16.3及更高版本。我去了Visual Studio 2019中的Help About,并且已经安装了Visual Studio 19版本:16.5.4的更新。
我的Mac使用的是Catalina 10.15.3,因此我也将Mac Book Pro更新为Catalina 10.15.4(Apple图标,然后选择关于本机来更新Catalina)。我在Mac上安装的XCode表示它仅支持在macOS Catalina 10.15.4上开发应用程序,因此是升级。
Visual Studio 2019版本更新超过8GB,但Mac更新仅超过3GB。就像您说的那样,将所有内容更新到最新/最有效的!
有了这些更新,每个人都很高兴。