0

I tried to run my app on the simulator, and while it worked before, now it showed me this code

    #import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char *argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

with green highlighted over the "return UIApplicationMain..."

This was what was in the terminal, or output:

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0xab8f660> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key values.'
*** First throw call stack:
(0x2234028 0x13fe902 0x22c3681 0xeb11be 0xe1d863 0xe1cdbd 0xe7f129 0x29e972 0x141096a 0x222f59a 0x29d4cb 0x127ebb 0x1284d3 0x128709 0x128bfd 0x64419 0x647b4 0x64a1e 0x6eb17 0x25ee5 0x271dc 0x3cc6c 0x3d1d9 0x28e55 0x2192ce2 0x21927ed 0x21af8d5 0x21af60a 0x21da032 0x21d959f 0x21d93eb 0x26960 0x28b6b 0x5c9d 0x596d725)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Please help me, I have tried many things to solve the issue, the code looks fine, and it does say no errors, just the unexpected termination when the app opens, before it does anything it switches me back to xCode.

nietonfir
  • 4,797
  • 6
  • 31
  • 43

0 Answers0