什么是造成这种二次损害?

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

#import <UIKit/UIKit.h> @interface CJSHAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end 

当我尝试运行它时,@interface行会得到错误“Expected identifier or'('”,@end line gets,“@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])); } }