//
// 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文件。 –