//
// main.m
// Journey
//
// Created by Julian Buscema on 2014-07-13.
// Copyright (c) 2014 Julian Buscema. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
当我尝试运行我的申请,我的main.m文件打开和“返回UIApplicationMain ......”线是绿色线程说1加亮:信号SIGABRT。我google了它,它说它必须做我的AppDelegate.h文件,但它的哪一部分?线程1:信号SIGABRT - AppDelegate.h
这就是:
//
// AppDelegate.h
// Journey
//
// Created by Julian Buscema on 2014-07-13.
// Copyright (c) 2014 Julian Buscema. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
P.S.我的项目中没有错误或警告。 – Julian
请参阅http://raywenderlich.com/10209/my-app-crashed-now-what-part-1以了解如何调试和发现问题。 – rmaddy
你的代码是好的。请向我们展示AppDelegate.m文件。 –