Hi again Dermotos,

It looks like this happens when a project has multiple NSObject (typically
UIView/UIViewController) subclasses with the same name.

For example, you might have My.LibraryNamespace.MyClassName and
My.ProgramNamespace.MyClassName

Does that sound like that could be the issue in your project?

Jeff

On Tue, Oct 11, 2011 at 3:30 AM, dermotos <[email protected]> wrote:

> Another day, another new show-stopping bug.
> Today's bug is....
>
> I can no longer edit xib files. I receive the following error when
> attempting to open any xib:
> Error updating Objective-C type information. An element with the same key
> already exists in the dictionary.
>
> Details:
>
> System.ArgumentException: An element with the same key already exists in
> the
> dictionary.
>  at
>
> System.Collections.Generic.Dictionary`2[System.String,MonoDevelop.MacDev.ObjCIntegration.NSObjectTypeInfo].Add
> (System.String key, MonoDevelop.MacDev.ObjCIntegration.NSObjectTypeInfo
> value) [0x00171] in
>
> /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:437
>  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update ()
> [0x00099] in
>
> /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:84
>  at MonoDevelop.MacDev.ObjCIntegration.NSObjectProjectInfo.Update (Boolean
> force) [0x0000c] in
>
> /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/ObjCIntegration/NSObjectProjectInfo.cs:66
>  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateTypes
> (IProgressMonitor monitor, Boolean force) [0x00034] in
>
> /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:307
>
>
> I can roll back to an earlier version of the project to hopefully fix it.
> Ill also submit a bug report.
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Can-no-longer-edit-xib-files-tp3893077p3893077.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to