不好意思问,我试过了我在线阅读过的所有内容,但是当我尝试运行应用时,我一直在收到SIGABRT错误。信号SIGABRT尝试运行xcode 5.0时出错应用
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
错误代码出现的返回UIApplicationMain旁(的argc,argv的,零,NSStringFromClass([AppDelegate类])); 一行。
调试器只是规定
2013-10-18 10:29:45.270 Black History Month[733:c07] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x903f770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(0x14a3052 0xea3d0a 0x14a2f11 0x9b3032 0x924f7b 0x924eeb 0x93fd60 0x23291a 0x14a4e1a 0x140e821 0x23146e 0x233010 0x1314a 0x13461 0x127c0 0x21743 0x221f8 0x15aa9 0x138dfa9 0x14771c5 0x13dc022 0x13da90a 0x13d9db4 0x13d9ccb 0x122a7 0x13a9b 0x2712 0x2685)
terminate called throwing an exception
我已经尝试制作了几个不同的应用程序,并始终得到这个错误所以无法释放,我现在已经尝试了简单的UIWebView的应用程序,同样的事情持续发生。我曾尝试在许多不同的部署目标上运行,但没有成功的结果。
我已尝试重置模拟器,重新启动xcode模拟器和计算机多次,关闭xib文件的自动布局。没有运气。有任何想法吗?
预先感谢
给出原因。尝试访问UIApplication对象上的'view'属性。它没有这个属性。 – nielsbot