Bug 5569 - When moving back from Interface Builder to MonoDevelop, an error is thrown
Summary: When moving back from Interface Builder to MonoDevelop, an error is thrown
Status: RESOLVED DUPLICATE of bug 4991
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-06-07 13:05 UTC by Nic Wise
Modified: 2012-06-07 17:32 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 4991

Description Nic Wise 2012-06-07 13:05:12 UTC
Steps:

1. Make a new universal project (might be iphone, too)
2. edit the xib
3. add some stuff to it, including outlets and actions
4. save in xcode
5. switch back to monodevelop
6. get this error:


System.InvalidOperationException: Both arguments to IsDerivedFrom() must be from the same compilation.
 at ICSharpCode.NRefactory.TypeSystem.ExtensionMethods.IsDerivedFrom (ITypeDefinition type, ITypeDefinition baseType) [0x00029] in /Users/builder/data/lanes/monodevelop-mac-3.0.2/046db1bb/source/monodevelop/main/contrib/ICSharpCode.NRefactory/TypeSystem/ExtensionMethods.cs:92 
 at MonoDevelop.MacDev.ObjCIntegration.NSObjectInfoService+<GetRegisteredObjects>c__Iterator2.MoveNext () [0x000d8] in /Users/builder/data/lanes/monodevelop-mac-3.0.2/046db1bb/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.2/046db1bb/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.2/046db1bb/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.2/046db1bb/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:392 


I suspect this is the same issue that  Elena inpasarable@gmail.com is having on the list (Jeff!!)

HOWEVER: actions etc are all updated fine, and the error doesn't happen second time around.
Comment 1 Nic Wise 2012-06-07 13:24:19 UTC
I stand corrected. When I went back into xcode, all the actions are gone. Nothing in the generated obj-c code (tho they were in the generated class in c#) :(
Comment 2 Karl Heinz Brehme Arredondo 2012-06-07 16:49:39 UTC
I have this problem too: the error message, that cleaning project it run ok at least one time, and the lost of some actions (not all).
Comment 3 Jeffrey Stedfast 2012-06-07 17:32:01 UTC

*** This bug has been marked as a duplicate of bug 4991 ***