是什么原因造成二次伤害?(What is causing this secondary damage

2019-11-02 12:53发布

在我的应用程序委托头,我有:

#import <UIKit/UIKit.h>

@interface CJSHAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end

当我尝试运行它,在@interface行获得误差,“预期标识符或‘(’”和@end行获得,“‘@end’必须出现在Objective-C的情况下”,并在此之后, main.m文件被“未声明的标识符“CJSHAppDelegate的使用”。这些都没有发生过。

是什么原因造成这一点,有什么方法可以解决? 我希望它是二次伤害,但不知道去哪里找。

错误消息的英文翻译将是有益的; 我相信,报道了Xcode的生成样板代码的错误。

- 编辑 -

在main.m文件,在响应的要求,是:

//
//  Created by jonathan on 9/27/13.
//  Copyright (c) 2013 Jonathan Hayward. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "CJSHAppDelegate.h"

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([CJSHAppDelegate class]));
    }
}
文章来源: What is causing this secondary damage?