[MonoTouch] Can no longer edit xib files

Jeff Stedfast jeff at xamarin.com
Tue Oct 11 13:41:16 EDT 2011


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 <me at dermotos.com> 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
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111011/f284d966/attachment.html 


More information about the MonoTouch mailing list