Xamarin Studio / VS for Mac Storyboard 未打开
Posted
技术标签:
【中文标题】Xamarin Studio / VS for Mac Storyboard 未打开【英文标题】:Xamarin Studio / VS for Mac Storyboard not opening 【发布时间】:2017-12-31 12:32:19 【问题描述】:我买了一台新的 MacBook Pro 来开发 ios 通用应用程序。在我卖掉我的旧代码之前,我将我的代码推送到了 BitBucket 存储库。
现在我已经安装了 VS for Mac 和 Xamarin Studio 并从 bitbucket 中提取了源代码。一切工作正常(构建、调试等),但在情节提要设计器中进行设计将无法正常工作。
我收到以下异常:
[2017-07-25 15:55:16.3] ERROR: EnsureSession (counter 1): MonoTouch.Design.Client.DesignerRemoteException: System.NotSupportedException: Could not parse xml
at MonoTouch.Design.Parser.Parse (MonoTouch.Design.ParseContext context) in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:220
at MonoTouch.Design.UIKitParser.Parse (MonoTouch.Design.ParseContext context) in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:205
at MonoTouch.Design.Server.SessionController.LoadXmlCore (MonoTouch.Design.ParseContext ctx) in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/SessionController.cs:332
at MonoTouch.Design.Server.SessionController.LoadXml (System.Xml.Linq.XElement xml, System.Boolean freezeMisplacements, System.String[] viewsToHide) in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/SessionController.cs:304
at MonoTouch.Design.Server.SessionController.LoadFullXml (System.Xml.Linq.XElement xml, System.Boolean freezeMisplacements, System.String[] viewsToHide) in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/SessionController.cs:208
at MonoTouch.Design.Server.CommandListener.LoadXml (MonoTouch.Design.CommandRequest untypedRequest, MonoTouch.Design.Server.SessionController controller) in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/Connection/CommandListener.cs:207
at MonoTouch.Design.Server.Router.Route (MonoTouch.Design.SessionCommandRequest request, MonoTouch.Design.Server.SessionController controller) in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/Connection/Router.cs:49
at MonoTouch.Design.Server.CommandListener+<HandleRequestAsync>c__async1.MoveNext () in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/Connection/CommandListener.cs:99
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest (MonoTouch.Design.CommandRequest req, System.Boolean throwIfNotRunning) [0x00059] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:234
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse] (MonoTouch.Design.CommandRequest req, System.Boolean throwIfNotRunning) [0x00000] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:243
at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.String xml, System.String[] viewsToHide) [0x00014] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:186
at MonoTouch.Design.Client.ServerProcessConnection.PostXml (MonoTouch.Design.DesignSession session, System.Xml.Linq.XElement fullStoryboard, System.Xml.Linq.XElement[] partialElements, System.Boolean freezeMisplacements, System.String[] viewsToHide) [0x000c0] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/Connection/ServerProcessConnection.cs:165
at MonoTouch.Design.Client.IPhoneDesignerSession+<RenderXmlWithPartialReloadRetry>c__async4+<RenderXmlWithPartialReloadRetry>c__AnonStorey16.<>m__0 (MonoTouch.Design.Client.ServerProcessConnection c) [0x00000] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:652
at MonoTouch.Design.Client.IPhoneDesignerSession+<EnsureSession>c__AnonStorey3B`1[TResult].<>m__0 () [0x0012d] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:1989
根据异常,我的 xml(故事板)无效,无法解析。不知何故,我能够在我的旧 MacBook(6 个月前)上打开故事板。也可以通过 XCode Interface Builder 打开故事板。
详细发生的错误:
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.310 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Could not find MonoTouch.Design.Storyboard.useTraitCollections
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.310 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Could not find MonoTouch.Design.Storyboard.colorMatched
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.310 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Could not find MonoTouch.Design.Storyboard.device
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.312 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Could not find MonoTouch.Design.ProxiedPageViewController.storyboardIdentifier
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.313 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Could not find MonoTouch.Design.ProxiedViewController.storyboardIdentifier
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.317 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Could not find MonoTouch.Design.ProxiedLabel.usesAttributedText
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.325 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Could not parse UIColor specified with the following data: '<color key="NSColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace" />'
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.331 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Error in type parser for: UIKit.UIFont
System.NotImplementedException: <font key="NSFont" metaFont="system" size="200" />
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker (System.Object[] args) [0x00024] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:263
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Invoke (System.Object[] args) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:239
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x0003b] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:289
at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x0001b] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Interpreter.cs:126
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.331 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: Error in type parser for: 0
System.NotImplementedException: <font key="NSFont" metaFont="system" size="200" />
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker (System.Object[] args) [0x00024] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:263
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Invoke (System.Object[] args) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:239
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x0003b] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:289
at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x0001b] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Interpreter.cs:126
com.xamarin.MTHosting.aa6984471.stderr: 2017-07-25 15:55:16.336 MonoTouchDesignServerUnified[2229:79606] [2017-07-25 15:55:16.3] ERROR: UNHANDLED EXCEPTION:
System.NotSupportedException: Could not parse xml ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: <font key="NSFont" metaFont="system" size="200" />
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.InvokeWorker (System.Object[] args) [0x00024] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:263
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Invoke (System.Object[] args) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:239
at Microsoft.Scripting.Interpreter.MethodInfoCallInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x0003b] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs:289
at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x0001b] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Interpreter.cs:126
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00050] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:313
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229
at MonoTouch.Design.Parser.ParseElements (MonoTouch.Design.ParseContext context, System.Object result) [0x000ff] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:312
at MonoTouch.Design.Parser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0002c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:267
at MonoTouch.Design.UIKitParser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0000b] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:1392
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context, System.Object result, Xamarin.Designer.ProxiedException error) [0x00114] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:358
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context) [0x0005a] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:240
at MonoTouch.Design.Parser.ParseElement (System.Object result, MonoTouch.Design.ParseContext context) [0x00088] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:1061
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00050] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:313
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229
at MonoTouch.Design.Parser.ParseElements (MonoTouch.Design.ParseContext context, System.Object result) [0x000ff] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:312
at MonoTouch.Design.Parser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0002c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:267
at MonoTouch.Design.UIKitParser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0000b] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:1392
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context, System.Object result, Xamarin.Designer.ProxiedException error) [0x00114] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:358
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context) [0x0005a] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:240
at MonoTouch.Design.Parser.ParseElement (MonoTouch.Design.ProxiedView model, MonoTouch.Design.ParseContext context) [0x00048] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:779
at MonoTouch.Design.UIKitParser.ParseElement (MonoTouch.Design.ProxiedView model, MonoTouch.Design.ParseContext context) [0x00004] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:2014
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00050] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:313
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229
at MonoTouch.Design.Parser.ParseElements (MonoTouch.Design.ParseContext context, System.Object result) [0x000ff] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:312
at MonoTouch.Design.Parser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0002c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:267
at MonoTouch.Design.UIKitParser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0000b] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:1392
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context, System.Object result, Xamarin.Designer.ProxiedException error) [0x00114] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:358
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context) [0x0005a] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:240
at MonoTouch.Design.Parser.ParseElement (MonoTouch.Design.ProxiedViewController model, MonoTouch.Design.ParseContext context) [0x000d4] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:735
at MonoTouch.Design.UIKitParser.ParseElement (MonoTouch.Design.ProxiedViewController model, MonoTouch.Design.ParseContext context) [0x00054] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:1882
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00050] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:313
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229
at MonoTouch.Design.Parser.ParseElements (MonoTouch.Design.ParseContext context, System.Object result) [0x000ff] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:312
at MonoTouch.Design.Parser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0002c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:267
at MonoTouch.Design.UIKitParser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0000b] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:1392
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context, System.Object result, Xamarin.Designer.ProxiedException error) [0x00114] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:358
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context) [0x0005a] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:240
at MonoTouch.Design.Parser.ParseElement (MonoTouch.Design.Scene scene, MonoTouch.Design.ParseContext context) [0x0009f] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:677
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00050] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:313
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229
at MonoTouch.Design.Parser.ParseElements (MonoTouch.Design.ParseContext context, System.Object result) [0x000ff] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:312
at MonoTouch.Design.Parser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0002c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:267
at MonoTouch.Design.UIKitParser.ParseElementsAndAttributes (MonoTouch.Design.ParseContext context, System.Object result) [0x0000b] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:1392
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context, System.Object result, Xamarin.Designer.ProxiedException error) [0x00114] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:358
at MonoTouch.Design.Parser.ParseCore (MonoTouch.Design.ParseContext context) [0x0005a] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:240
at MonoTouch.Design.Parser.ParseElement (MonoTouch.Design.Storyboard sb, MonoTouch.Design.ParseContext context) [0x0004c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:856
at MonoTouch.Design.UIKitParser.ParseElement (MonoTouch.Design.Storyboard sb, MonoTouch.Design.ParseContext context) [0x00004] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:1584
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /Users/builder/data/lanes/1381/d2cbd993/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
--- End of inner exception stack trace ---
at MonoTouch.Design.Parser.Parse (MonoTouch.Design.ParseContext context) [0x00035] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:220
at MonoTouch.Design.UIKitParser.Parse (MonoTouch.Design.ParseContext context) [0x00013] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs:205
at MonoTouch.Design.Server.SessionController.LoadXmlCore (MonoTouch.Design.ParseContext ctx) [0x00019] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/SessionController.cs:332
at MonoTouch.Design.Server.SessionController.LoadXml (System.Xml.Linq.XElement xml, System.Boolean freezeMisplacements, System.String[] viewsToHide) [0x0004d] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/SessionController.cs:304
at MonoTouch.Design.Server.SessionController.LoadFullXml (System.Xml.Linq.XElement xml, System.Boolean freezeMisplacements, System.String[] viewsToHide) [0x0000c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/SessionController.cs:208
at MonoTouch.Design.Server.CommandListener.LoadXml (MonoTouch.Design.CommandRequest untypedRequest, MonoTouch.Design.Server.SessionController controller) [0x001c6] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/Connection/CommandListener.cs:207
at MonoTouch.Design.Server.Router.Route (MonoTouch.Design.SessionCommandRequest request, MonoTouch.Design.Server.SessionController controller) [0x0001c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/Connection/Router.cs:49
at MonoTouch.Design.Server.CommandListener+<HandleRequestAsync>c__async1.MoveNext () [0x0011c] in /Users/builder/data/lanes/4470/6c2f6737/source/md-addins/Xamarin.Designer.iOS/MonoTouch.Design.Server/Connection/CommandListener.cs:99
有什么建议可以解决这个问题吗?我真的不想开始重新设计我的应用程序。
谢谢!
【问题讨论】:
我通过 App Store 将 Xcode 升级到 v9,但之后没有打开 Xcode。然后我的故事板上出现了这个错误。然后我打开 Xcode 并不得不接受 T&C 并安装一些东西,之后问题就解决了 【参考方案1】:问题在于 Xcode 界面构建器添加了一个名为“设备”的附加属性,该属性指定了初始设备设置。使用源代码编辑器打开 .xib 并简单地删除“设备”属性,它应该可以正常工作。
阅读更多 - Bug 58804
【讨论】:
将检查并尽快提供反馈!到目前为止,谢谢! 虽然这对我们之前有所帮助 - 升级 Xcode 后,即使没有设备属性,我也会遇到这个问题 我也面临同样的问题。目前使用 XCode 9.0。我删除了设备属性,但仍然遇到相同的异常 这并没有解决我的问题。阅读我的答案以解决问题【参考方案2】:经过很长时间,在没有 Xamarin 帮助的情况下,我找到了问题所在。
我为解决问题而采取的步骤:
-
将整个错误堆栈复制到编辑器
从底部开始阅读(像往常一样)
找出最后一个异常发生的位置
注释掉xml中对应的元素/属性
重复步骤 2 -> 4 直到不出现错误消息
就我而言,有几个无效元素,例如:
2017-11-30 23:50:42.8] ERROR: Error in type parser for: UIKit.UIFont
System.NotImplementedException: <font key="NSFont" metaFont="smallSystem" />
和
com.xamarin.MTHosting.3d875c911.stderr: 2017-11-30 23:45:45.638 MonoTouchDesignServerUnified[64451:979709] [2017-11-30 23:45:45.6] ERROR: Error in type parser for: UIKit.UIFont
System.NotImplementedException: <font key="NSFont" metaFont="cellTitle" />
所以我只是用“源代码编辑器”打开了我的故事板并注释掉了这些元素。
最后,我可以再次编辑我的故事板了。
【讨论】:
【参考方案3】:虽然安德烈的建议很好,但在很多情况下仍然无效。
我在 3 年前创建了一个旧项目,将新故事板添加到该项目中会返回此错误。
例如,我遇到了诸如 useTraitCollections
和 colorMatched
之类的错误,无法找到。我手动添加了它们,但仍然返回相同的错误。
我在另一个项目上找到了一个工作的故事板代码,并复制到我不工作的项目中。这首先解决了问题,然后您可以修改此情节提要。
【讨论】:
以上是关于Xamarin Studio / VS for Mac Storyboard 未打开的主要内容,如果未能解决你的问题,请参考以下文章
从 Visual Studio 2019 Xamarin.iOS 连接到 Mac 的代理问题
如何使用Xamarin在Visual Studio中创建Android应用
xamarin for Visual Studio 不显示模拟器列表