在Xamarin.IOS编辑器中,我收到此错误:
“此文档中的XML解析存在问题”
System.NullReferenceException: Object reference not set to an instance of an object
at MonoTouch.Design.ProxiedView.set_UseSafeArea (System.Boolean value) [0x00001] in /Users/vsts/agent/2.154.3/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Shared/ProxiedView.cs:944
at MonoTouch.Design.ProxiedViewController.UpdateLayoutGuides (MonoTouch.Design.Catalog utilityCatalog, MonoTouch.Design.IosDocument rootModel) [0x002ac] in /Users/vsts/agent/2.154.3/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Shared/ProxiedViewController.cs:238
at MonoTouch.Design.Storyboard.UpdateLayoutGuides (MonoTouch.Design.Catalog utilityCatalog) [0x00017] in /Users/vsts/agent/2.154.3/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Storyboard.cs:132
at MonoTouch.Design.Client.IPhoneDesignerSession.LoadXml (System.Func`1[TResult] getDoc, System.Boolean shouldTryUpgrade, System.String fileName) [0x00310] in /Users/vsts/agent/2.154.3/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs:466
我尝试禁用事物并追溯我执行情节提要的每一步,只有一半有效的事情是禁用自动布局,但这破坏了我的布局。 事实是,它在应用程序和xcode中都能完美运行,但是在VS iOS设计器中却无法正常工作,我需要添加组件的ID才能在ViewController中使用它们,在我的项目中,这是添加代码的唯一方法ID。
我迷路了,如果您需要任何其他信息,请问我,我粘贴了日志的重要(或我认为)部分,它们太长了。
这是故事板的iPad版本,可以很好地工作,它基于该故事板(复制并粘贴,然后进行编辑以适合iPad)