我的项目没有明显的错误,但是当我尝试运行它时出现以下错误
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ConcreteScreen", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在 ViewController.m 中使用我的 ContactScreen 类
我尝试了@class ContactScree 和#import"ContactScreen.h"
在我的 ViewController 中,我使用它,因为[ContactScreen myMethod];
当我注释掉这一行时它工作正常,但现在它给出编译时错误:(昨天它工作正常
这是我的代码
#import "ViewController.h"
#import "ConcreteScreen.h"
@interface ViewController ()
@end
@implementation ViewController
-(IBAction)btnContactPress:(id)sender{
NSLog(@"Contact Screen");
ConcreteScreen *coontact = [[ConcreteScreen alloc]init];
}