Debugging


#1

When I try to compile my files after implementing the tableView:cellForRowAtIndexPath: it produces these errors and it’s driving me nuts, i can’t figure it out! I know it’s saying there’s a problem with my reference to BNRItem but I don’t see anything wrong with it… Thanks in advance!

Undefined symbols for architecture i386: "_OBJC_CLASS_$_BNRItem", referenced from: objc-class-ref in BNRItemStore.o (maybe you meant: _OBJC_CLASS_$_BNRItemStore) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)


#2

Make sure that the *.m file that contains the BNRItem class is being compiled.

If you have just dragged the file from another project onto the working project, the file may not have been added properly to the project.


#3

This might have your answer:

stackoverflow.com/questions/6984 … age-refere

It sounds like BNRItem isn’t being compiled.


#4

Thank you!
I got distracted while doing this section and didn’t check the Target box while importing.
Good to know.