我只是错过了一些非常愚蠢的东西吗?
评论是错误:
#import <Foundation/Foundation.h>
@interface BWStack : NSObject <NSCoding>
@property (readonly, nonatomic) id topObject;
-(void)pushObject:(id)object; // Missing context for method declaration
-(id)popObject; // Expected method body
@end // @end must appear in an Objective-C context
通过清理、删除派生数据并重新启动,即使(按该顺序)这些错误仍然存在。将文件放在不同的项目中,没有错误。