Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
When control-dragging elements from Interface Builder to link them as Outlets or Actions to your ViewController.h file, the changes to that file are reflected in the designer.cs file, but then when switching to Monodevelop to observe the changes and then switching back to XCode, the ViewController.h file only contains the default auto-generated code and does not reflect the changes in the designer.cs file. If the ViewController.h file is saved, the designer.cs file will then reflect the default code in the ViewController.h file. If another UI element is control-dragged from IB into that now blank ViewController.h file in XCode, without having saved the blank ViewController.h file, the designer.cs file will now be written over with the newly added UI element code. Instead of just adding that new UI element code to the designer.cs file.
Steps to reproduce:
1. Drag a UI element in interface builder to the ViewController.h file in XCode.
2. Switch into MonoDevelop.
3. Switch back to XCode (You'll see that the changes to the ViewController.h file are no longer there.)
4. Save the blank file and the designer.cs file will change back to it's default code or drag another UI element into VC.h file and the code in designer.cs will be written over.
I've seen this too. Tracking it down now
Fixed in git master
*** Bug 3147 has been marked as a duplicate of this bug. ***