ios - 在默认的 MonoTouch 应用程序中,xib 未在 Xcode 中打开

标签 ios xcode xamarin.ios xib xamarin

我刚刚使用 MonoDevelop 创建了一个 MonoTouch 解决方案,在我尝试在 XCode 中打开 xib 进行编辑后,出现以下异常(并且 xib 未打开):

System.NotSupportedException: Custom attribute type 0x43 is not supported.
at ICSharpCode.NRefactory.TypeSystem.CecilLoader+BlobReader.ReadCustomAttributeFieldOrPropType () [0x00000] in <filename unknown>:0 
at ICSharpCode.NRefactory.TypeSystem.CecilLoader+BlobReader.ReadNamedArg (IType attributeType) [0x00000] in <filename unknown>:0 
at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob (System.Collections.Generic.List`1 positionalArguments, System.Collections.Generic.List`1 namedArguments) [0x00000] in <filename unknown>:0 
at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob () [0x00000] in <filename unknown>:0 
at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.get_PositionalArguments () [0x00000] in <filename unknown>:0 
at MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService.ConvertType (MonoDevelop.Ide.TypeSystem.ProjectContentWrapper dom, ITypeDefinition type) [0x00000] in <filename unknown>:0 
at MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService+<GetRegisteredObjects>c__Iterator2.MoveNext () [0x00000] in <filename unknown>:0 
at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update () [0x00000] in <filename unknown>:0 
at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update (Boolean force) [0x00000] in <filename unknown>:0 
at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes (IProgressMonitor monitor) [0x00000] in <filename unknown>:0 

虽然应用程序编译并运行良好......

最佳答案

重启XCode和MonoTouch,应该可以解决这个问题...

关于ios - 在默认的 MonoTouch 应用程序中,xib 未在 Xcode 中打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11161544/

相关文章:

ios - 如何在 UILabel 上面添加 UILabel

ios - iOS 应用程序使用 Web 服务需要不同的框架

facebook-graph-api - 使用 Mono 中的 Facebook API

ios - MonoTouch 迁移分析器

ios - 下载 ios 5 模拟器并将其添加到没有 xcode 组件的 xcode 4.5 和 monotouch

ios - 为什么我的应用程序突然无法构建并提示这些 "ld"和 "clang"错误?

android - React-Native 中的抽屉导航

ios - 编译使用 Boost 的 iOS 应用程序时出现可见性链接器警告

xcode - Xcode 中的这些黄色间隔是什么?

ios - 快速将 UILabel 的内容包装在一个行单元格中