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.
This may be an Xcode bug - I'm not sure. I do know it was not in previous versions of Xam.iOS
Using OS X 10.8.4, Xam.iOS Version: 126.96.36.199
I have a very simple xib file defined in Xcode. I save it and then reload.
In the designer, I remove three labels - lblOne, lblTwo and lblFour. I then create 3 new labels and call them lblNewOne, lblNewTwo and lblNewFour. These are the connected so that Xam.iOS has access to them.
When I compile and run my app, the view with these labels on will crash giving me the following error
Objective-C exception thrown. Name: NSUnknownKeyException Reason: [<MyApp 0x7d5deaf0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key lblOne.- at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_bool (intptr,intptr,intptr,bool)
at MonoTouch.UIKit.UINavigationController.PushViewController (MonoTouch.UIKit.UIViewController viewController, Boolean animated) [0x00021] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UINavigationController.g.cs:179
A find in files shows that the old lblOne is still in the Xib file
What you need to do is open the xib in Xcode again and make sure to remove the Outlet connections to lblOne, lblTwo, and lblFour.
Once you do that, it should work.
Even though you removed the labels themselves, I guess you didn't remove the outlet connections or something.
Hope that helps.