Terminating app due to uncaught exception

268 Views Asked by At

I need some help, when I start app on iphone 6 it starts but errors in console:

2015-06-05 12:45:45.211 EyeScanner[13508:189126] Failed to set (selectedImage) user defined inspected property on (HMNavigationController): [ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key selectedImage. 2015-06-05 12:45:45.213 EyeScanner[13508:189126] -[__NSCFNumber _imageThatSuppressesAccessibilityHairlineThickening]: unrecognized selector sent to instance 0xb000000000000003 2015-06-05 12:45:45.213 EyeScanner[13508:189126] Failed to set (selectedImage) user defined inspected property on (UITabBarItem): -[__NSCFNumber _imageThatSuppressesAccessibilityHairlineThickening]: unrecognized selector sent to instance 0xb000000000000003

But when I start it on iphone 5s with IOS 7 - crash and log:

2015-06-05 13:50:57.202 EyeScanner[13752:607] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key selectedImage.'

1

There are 1 best solutions below

11
On

Here is the error:

(HMNavigationController): [ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key selectedImage.

Check:

1- If you have connected the correct property with the object in IBOutlet.

2- Any deleted property in code, but object in IBOutlet still targeting that deleted property.

EDIT:

Try cleaning the project with Shift-Cmd-K

Also Clean Build Folder. To access the option open the Product menu and use the Option key to show the Clean Build Folder option.

Xcode Image