我只是错过了一些非常愚蠢的东西吗?
评论是错误:
#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
通过干净,删除派生数据,甚至重启(按此顺序)这些错误仍然存在。将文件放在不同的项目中,没有错误。