0

I'm following the tutorial CS193p on itunes and running into a problem with the core data lesson. I've done everything exactly as in the demo (however for a slightly different app than in the lesson) and also included the CoreData Framework under build phases for my project. However it still throws this error:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CoreDataTableViewController", referenced from: _OBJC_CLASS_$_BudgetTableViewController in BudgetTableViewController.o
"_OBJC_METACLASS_$_CoreDataTableViewController", referenced from: _OBJC_METACLASS_$_BudgetTableViewController in BudgetTableViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea why? In my BudgetTableViewController.h I've included CoreDataTableViewController.h. And CoreDataTableViewController.h imports So I don't know where the problems is?

MichiZH
  • 5,587
  • 12
  • 41
  • 81
  • Verify that CoreDataTableViewController.m is added to the target ("Target Membership" in the inspector ) – Martin R Apr 13 '13 at 13:57
  • Thank you very much, that solved it! But what does this actually mean if that checkmark is checked or unchecked? I don't yet completely understand these target settings anyway... – MichiZH Apr 13 '13 at 14:03
  • If it is unchecked, then the compiled object is not linked to the target executable. That is only useful if you have several targets in the same project. – Martin R Apr 13 '13 at 14:16
  • Also see http://stackoverflow.com/questions/9809477/apple-mach-o-linker-command-failed-with-exit-code-1/9809815#9809815 – Lorenzo B Apr 13 '13 at 14:16
  • @flexaddicted: That link explains everything nicely, I have voted to close as a duplicate. – Martin R Apr 13 '13 at 15:07

0 Answers0