I've been devastated last two days looking and reading about all kind of errors. And I found similar issues but when I try to fix mine, it never works.
I'm almost ready to submit my project and it was working amazing. However, suddenly when I try to run the code, it builds fine but when it runs, it stays on the launch image and then it crashes. I've tried it both on the simulator and the device, same thing.
Though, when it runs my Xcode takes me to this line which I absolutely understand, not.
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
It simply points there with no error than: Thread 1: signal SIGBRT
and the Output shows this:
2013-01-14 14:17:17.127 LSA[37852:c07] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7141450> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.'
*** First throw call stack:
(0x1c8f012 0x10cce7e 0x1d17fb1 0xb79711 0xafaec8 0xafa9b7 0x64573 0xb25428 0x49c7e4 0x10e0663 0x1c8a45a 0x22fbb3 0xf4e37 0xf5418 0xf5648 0xf5882 0x44a25 0x44dbf 0x44f55 0x4df67 0x11fcc 0x12fab 0x24315 0x2524b 0x16cf8 0x1beadf9 0x1beaad0 0x1c04bf5 0x1c04962 0x1c35bb6 0x1c34f44 0x1c34e1b 0x127da 0x1465c 0x251d 0x2445)
libc++abi.dylib: terminate called throwing an exception
(lldb).
If you please understand a word from this guide me. I'm really lost.
I feel it happened when I linked my UISwitch but I've tried disliking it, deleting it, commenting all the codes and still same thing! I'm a beginner but a fast learner so please elaborate and ask me if you need more details.