2012-05-19 308 views
1

我有一個全新的Mac Mini安裝(雪豹)並安裝了XCode 4-2.2。安裝最新的monotouch庫。無法打開.storyboard文件

當我雙擊monotouch中的.storyboard文件時,出現以下錯誤。任何想法?:

更新Objective-C類型信息時出錯。操作不受支持。

System.NotSupportedException: Operation is not supported. 
    at ICSharpCode.NRefactory.TypeSystem.CecilLoader+BlobReader.ReadCustomAttributeFieldOrPropType() [0x00146] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:1224 
    at ICSharpCode.NRefactory.TypeSystem.CecilLoader+BlobReader.ReadNamedArg (IType attributeType) [0x00040] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:1173 
    at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob (System.Collections.Generic.List`1 positionalArguments, System.Collections.Generic.List`1 namedArguments) [0x0008c] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:913 
    at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob() [0x0000c] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:894 
    at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.get_PositionalArguments() [0x00014] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:869 
    at MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService.ConvertType (MonoDevelop.Ide.TypeSystem.ProjectContentWrapper dom, ITypeDefinition type) [0x00064] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs:174 
    at MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService+<GetRegisteredObjects>c__Iterator2.MoveNext() [0x000d2] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectInfoService.cs:152 
    at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update() [0x0022a] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:102 
    at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update (Boolean force) [0x0000c] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:73 
    at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes (IProgressMonitor monitor) [0x00031] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:392 
+0

實際上,這也發生在雙擊XIB文件。當我第一次打開MonoDevelop時,有一條關於更新單聲道的消息,我曾這樣做過。這可能與它有關嗎? – user1142433

+0

升級到monodevelop 3.x已解決問題。 (不能將問題標記爲自己回答) – user1142433

+0

我剛剛安裝了Monotouch,並且在我第一次運行它時自動更新了它。我現在在3.0.2上,我遇到了雙擊xib文件的問題。 – PeterT

回答

1

我是新來的Monotouch,並得到了同樣的錯誤。

我只是關閉了Monotouch。打開XCode以確保它沒有問題,然後關閉Xcode。再次打開Monotouch,它運行了一些xcode更新,問題得到解決。

+0

+1也適用於我。剛剛關閉了MonoDevelop和Xcode,並重新打開了MonoDevelop。然後雙擊.storyboard文件打開Xcode,一切正常。 – peirix