Xamarin Studio / VS for Mac Storyboard无法打开

时间:2017-07-25 14:05:50

标签: c# ios macos xamarin storyboard

我买了一台用于开发iOS通用应用程序的新MacBook Pro。在我销售旧的之前,我将代码推送到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(storyboard)无效且无法解析。不知何故,我能够在旧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 

有任何建议如何解决这个问题?我真的不想开始重新设计我的应用程序。

谢谢!

3 个答案:

答案 0 :(得分:3)

问题是Xcode界面构建器添加了一个名为&#39; device&#39;的附加属性。它指定了初始设备设置。使用源代码编辑器打开.xib,然后只需删除&#39;设备&#39;属性,它应该工作正常。

了解详情 - Bug 58804

答案 1 :(得分:1)

经过很长一段时间,没有Xamarin的帮助,我发现问题所在。

我为解决问题所做的步骤:

  1. 将整个错误堆栈复制到编辑器
  2. 从底部开始阅读(照例)
  3. 找出最后发生的异常的位置
  4. 在xml out
  5. 中注释相应的元素/属性
  6. 重复步骤2 - &gt; 4直到没有出现错误消息
  7. 在我的案例中,有几个无效元素,例如:

        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" />
    

    所以我刚用“源代码编辑器”打开了我的故事板,并对这些元素进行了评论。

    最后,我可以再次编辑我的故事板。

答案 2 :(得分:0)

尽管安德烈(Andre)的建议是好的,但在许多情况下仍然无效。 我有一个3年前创建的旧项目,向该项目添加新的故事板会返回此错误。 例如,我找不到类似function registrationSendFunction() { const xhr = new XMLHttpRequest(); const url = "/register"; xhr.open("POST", url, true); xhr.setRequestHeader("Content-Type", "application/json"); let regVariable1 = document.getElementById("username").value; let regVariable2 = document.getElementById("psw2").value; let regVariable3 = document.getElementById("fullname").value; let regVariable4 = document.getElementById("email").value; let regVariable5 = document.getElementById("nationality").value; let regVariable6 = document.getElementById("favourite").value; let registrationDetails = { "username" : regVariable1, "secret" : regVariable2, "fullname" : regVariable3, "emailAddress" : regVariable4, "nationality" : regVariable5, "favourite" : regVariable6 } let dataToSend = JSON.stringify(registrationDetails) xhr.send(dataToSend); xhr.onreadystatechange = function () { if (xhr.readyState === 4 && xhr.status === 200) { regModal.style.display = "none"; } } } useTraitCollections的错误。我手动添加了它们,但仍然返回相同的错误。 我在另一个项目上找到了一个有效的情节提要代码,并将其复制到了我不工作的项目中。首先解决此问题,然后您可以修改此情节提要。