I have a simple project, on my basic ViewController.m i'm trying to move to another UIViewController by doing:
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
...
}
- (void)addAlarmBrick {
NewAlarmViewController *navc = [[NewAlarmViewController alloc] init];
[self presentViewController:navc animated:YES completion:nil];
}
I have the NewAlarmViewController on my project with the .m file listed in the target membership.
This is the full error message:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NewAlarmViewController", referenced from:
objc-class-ref in ViewController.o ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
what am i doing wrong over here?
EDIT:
Adding the settings for both files:
.m file:

.h file:

