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.
Created attachment 1841 [details]
Adding the Action to the .h file.
Steps to reproduce:
1. Create a new iPhone project, Storyboard.
2. Select Single View Application
3. Add a button and outlet
4. Add an image view and outlet
5. Add an action for the button on the TouchUpInside event
6. Switch back to MonoDevelop, and implement the partial method for the action that was added in step #5.
7. Run the application, it should work. Stop the application.
8. Back in MonoDevelop, double click ont the storyboard file. The action has disappeared from the .h file.
10. When you run the application, the follow exception will be thrown:
MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[TakeAPicture_iPhoneViewController actionTakeAPicture:]: unrecognized selector sent to instance 0x9b5d9f0
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string,intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at TakeAPicture.iPhone.Application.Main (System.String args) [0x00000] in /Users/tom/work/SafetyTicketRegistry/mobile/TakeAPicture.iPhone/Main.cs:17
I've attached screenshots.
Created attachment 1842 [details]
Implementing the partial method for the action in MonoDevelop
Created attachment 1843 [details]
Going back to XCode, the action is gone.
Did MD sync back the partial method into the designer file?
It's a bit odd that the screenshot of MD is showing a syntax error...
No, MD did nothing to sync back the method into the designer file. Any syntax errors are probably mine.
As long as I don't implement the partial method in the main .cs file, it continues to work syncing back and forth with Xcode.
But as soon as I implement the partial method, then it fails to sync.
I'm guessing that something is going wrong with the resolver?
Backported to 3.0, since it causes data loss.
Aren't we releasing from master ?
No, the *next* release will be re-branched from master.
*** Bug 5569 has been marked as a duplicate of this bug. ***