Bug 13357 - Xcode to iOS not updating correctly
Summary: Xcode to iOS not updating correctly
Status: RESOLVED UPSTREAM
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-07-19 22:00 UTC by Paul Johnson
Modified: 2013-07-25 16:43 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 UPSTREAM

Description Paul Johnson 2013-07-19 22:00:50 UTC
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: 6.3.8.11

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
Comment 1 Jeffrey Stedfast 2013-07-25 16:43:08 UTC
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.