我试图在模拟器上运行我的应用程序,虽然之前有效,但现在它显示了我的代码
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
绿色突出显示“return UIApplicationMain ...”
这是终端或输出中的内容:
*** 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)
请帮助我,我已经尝试了很多方法来解决这个问题,代码看起来很好,它确实说没有错误,只是在应用程序打开时意外终止,在它执行任何操作之前它会将我切换回xCode。 / p>