无法在Visual Studio中打开.storyboard文件(版本7.4(内部版本1033))

时间:2018-03-15 07:37:28

标签: xamarin xamarin.ios

我可以在Xcode 9.2中打开storyboard文件,但无法在Visual Studio中打开文件(版本7.4(内部版本1033))

以下是日志

在本文档中解析XML时出现问题

错误日志:

System.NotSupportedException:无法解析xml ---> System.Reflection.TargetInvocationException:调用目标抛出了异常。 ---> System.Reflection.TargetInvocationException:调用目标抛出了异常。 ---> System.NullReferenceException:未将对象引用设置为对象的实例   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/中的MonoTouch.Design.Parser.ParseElement(MonoTouch.Design.ProxiedViewController模型,MonoTouch.Design.ParseContext上下文)[0x00163] MonoTouch.Design.Shared / Parser.cs:767   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)[0x00032]在/ Users / builder中/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305    ---内部异常堆栈跟踪结束---   at System.Reflection.MonoMethod.Invoke(System.Object obj,System.Reflection.BindingFlags invokeAttr,System.Reflection.Binder binder,System.Object [] parameters,System.Globalization.CultureInfo culture)[0x00043] in / Users / builder /data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:313   at System.Reflection.MethodBase.Invoke(System.Object obj,System.Object [] parameters)[0x00000]在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono- 64 / MCS /类/ referencesource / mscorlib程序/系统/反射/ methodbase.cs:229   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch中的MonoTouch.Design.Parser.ParseElements(MonoTouch.Design.ParseContext上下文,System.Object结果)[0x000e3]。 Design.Shared / Parser.cs:324   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch中的MonoTouch.Design.Parser.ParseElementsAndAttributes(MonoTouch.Design.ParseContext上下文,System.Object结果)[0x00035]。 Design.Shared / Parser.cs:274   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin中的MonoTouch.Design.Parser.ParseCore(MonoTouch.Design.ParseContext上下文,System.Object结果,Xamarin.Designer.ProxiedException错误)[0x0012f] .Designer.iOS / MonoTouch.Design.Shared / Parser.cs:382   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser中的MonoTouch.Design.Parser.ParseCore(MonoTouch.Design.ParseContext context)[0x00050]的.cs:245   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/中的MonoTouch.Design.Parser.ParseElement(MonoTouch.Design.Scene场景,MonoTouch.Design.ParseContext上下文)[0x0009d] MonoTouch.Design.Shared / Parser.cs:701   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)[0x00032]在/ Users / builder中/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305    ---内部异常堆栈跟踪结束---   at System.Reflection.MonoMethod.Invoke(System.Object obj,System.Reflection.BindingFlags invokeAttr,System.Reflection.Binder binder,System.Object [] parameters,System.Globalization.CultureInfo culture)[0x00043] in / Users / builder /data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:313   at System.Reflection.MethodBase.Invoke(System.Object obj,System.Object [] parameters)[0x00000]在/ Users / builder / data / lanes / 5533 / mono-mac-sdk / external / bockbuild / builds / mono- 64 / MCS /类/ referencesource / mscorlib程序/系统/反射/ methodbase.cs:229   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch中的MonoTouch.Design.Parser.ParseElements(MonoTouch.Design.ParseContext上下文,System.Object结果)[0x000e3]。 Design.Shared / Parser.cs:324   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch中的MonoTouch.Design.Parser.ParseElementsAndAttributes(MonoTouch.Design.ParseContext上下文,System.Object结果)[0x00035]。 Design.Shared / Parser.cs:274   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin中的MonoTouch.Design.Parser.ParseCore(MonoTouch.Design.ParseContext上下文,System.Object结果,Xamarin.Designer.ProxiedException错误)[0x0012f] .Designer.iOS / MonoTouch.Design.Shared / Parser.cs:382   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser中的MonoTouch.Design.Parser.ParseCore(MonoTouch.Design.ParseContext context)[0x00050]的.cs:245   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/中的MonoTouch.Design.Parser.ParseElement(MonoTouch.Design.Storyboard sb,MonoTouch.Design.ParseContext上下文)[0x00046] MonoTouch.Design.Shared / Parser.cs:906   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)[0x00032]在/ Users / builder中/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305    ---内部异常堆栈跟踪结束---   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch中的MonoTouch.Design.Parser.Parse(MonoTouch.Design.ParseContext上下文,System.Boolean skipImageGeneration)[0x0002a]。 Design.Shared / Parser.cs:225   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser中的MonoTouch.Design.Parser.Parse(MonoTouch.Design.ParseContext context)[0x00001]的.cs:214   在/Users/vsts/agent/2.129.1/work/1中的MonoTouch.Design.Parser.Parse(System.Xml.Linq.XElement xml,MonoTouch.Design.DeviceFamily targetRuntime,MonoTouch.Design.IModelObjectContext modelObjectContext)[0x00016] /s/Xamarin.Designer.iOS/MonoTouch.Design.Shared/Parser.cs:203   在/Users/vsts/agent/2.129.1/work/1/s/Xamarin.Designer.iOS/MonoTouch.Design.Client/IPhoneDesignerSession.cs中的MonoTouch.Design.Client.IPhoneDesignerSession + d__164.MoveNext()[0x001c0] :414 /Users/prashanttelangi/Library/Logs/VisualStudio/7.0/iOSDesigner.2018-03-15__12-59-58.log的内容: 提交:ce1c2b463f394d025915bbd9e92ec2f1d4ed4b9e [2018-03-15 13:00:12.6] INFO:IPhoneDesignerSdkManager:初始化设计器服务 [2018-03-15 13:00:12.7]信息:输入沙箱:AndroidDesignerMac [2018-03-15 13:00:12.7]信息:离开沙箱:AndroidDesignerMac

任何帮助表示赞赏!提前谢谢!

1 个答案:

答案 0 :(得分:0)

我将 Visual Studio 版本更新为 7.4.1(版本48),并且这些问题似乎已经消失。