No longer existing outlet causes crash in new version of app (iOS)
No longer existing outlet causes crash in new version of app (iOS)
- Subject: No longer existing outlet causes crash in new version of app (iOS)
- From: Koen van der Drift <email@hidden>
- Date: Thu, 06 Mar 2014 19:01:27 -0500
I'm working on a new version of my app, and while testing it against the one that is now in the store, I'm running into an "*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MyViewController 0x16e38150> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key graphSuperView.'" error when opening a viewController.
I know what this means and I think I know why this happens: in the previous version I had a xib for this viewController, with an outlet to 'graphSuperView'. However, while developing the next version, I took out that xib and the outlet, and am setting up the view completely in code. I did a text search through my whole project, but cannot find any references to that outlet, and the xib is no longer part of the project.
So my guess is that the app (the current release version) when it gets updated with the development version on my iPhone, still has a reference to that outlet, or even the xib, causing the crash.
Any ideas how this can be fixed?
Thanks,
- Koen.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden