1

2016-05-11 16:21:42.262 tech[3889:176910] Unknown class ViewController in Interface Builder file.

2016-05-11 16:21:42.336 tech[3889:176910] Unknown class LoginViewController in Interface Builder file.

2016-05-11 16:21:42.372 tech[3889:176910] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key loginBtn.' * First throw call stack:

please help me, i know this question is already asked here(Xcode 6 Strange Bug: Unknown class in Interface Builder file) but still i am not able to solve my problem, please help:(

Community
  • 1
  • 1
Mukul_3062
  • 86
  • 8
  • unknown class is different problem...check out http://stackoverflow.com/questions/3088059/what-does-this-mean-nsunknownkeyexception-reasonthis-class-is-not-key-valu to get solution to your problem – Sanman May 11 '16 at 12:09
  • can anyone one please explain this line " Your view controller may have the wrong class in your xib. I downloaded your project. The error you are getting is 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key string.' It is caused by the Second view controller in MainWindow.xib having a class of UIViewController instead of SecondView. Changing to the correct class resolves the problem. " – Mukul_3062 May 11 '16 at 12:53
  • I am using xcode 7 and I think there is no file of name MainWindow.xib – Mukul_3062 May 11 '16 at 12:54

1 Answers1

0

If you have deleted referencing outlet or action method of button from code the select that button from interface builder and open connection inspector and from referencing outlet or action close that connection.

enter image description here

Ketan Parmar
  • 27,092
  • 9
  • 50
  • 75