代码之家  ›  专栏  ›  技术社区  ›  Andre

Xamarin Studio/VS for Mac Storyboard未打开

  •  4
  • Andre  · 技术社区  · 7 年前

    我买了一台新的MacBook Pro用于开发iOS通用应用程序。在卖掉旧代码之前,我将代码推送到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接口生成器打开情节提要。

        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 回复  |  直到 7 年前
        1
  •  3
  •   Kishath    7 年前

    问题是Xcode interface builder添加了一个名为“device”的附加属性,该属性指定初始设备设置。使用源代码编辑器打开.xib,只需删除“device”属性,它就会正常工作。

    Bug 58804

        2
  •  1
  •   Andre    7 年前

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

    1. 将整个错误堆栈复制到编辑器
    2. 从底部开始阅读(像往常一样)
    3. 找出最后一个异常发生的位置
    4. 重复步骤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" />
    

    所以我用“Sourcecode编辑器”打开了我的故事板,并注释掉了那些元素。

        3
  •  0
  •   Emil    5 年前

    虽然Andre的建议很好,但在许多情况下仍然无效。 我在3年前创建了一个旧项目,在这个项目中添加一个新的故事板会返回这个错误。 例如,我有如下错误 useTraitCollections colorMatched 我在另一个项目中找到了一个可以工作的故事板代码,并将其复制到了我不工作的项目中。这首先解决了问题,然后您可以修改此情节提要。