Symbol(s) not found for architecture i386 ERROR!


I keep getting this error when I compile. I see that other people get it to but none of their feedback seems to work for me! aggghh!

[quote]Undefined symbols for architecture i386:
"OBJC_CLASS_Possession", referenced from: objc-class-ref in PossessionStore.o (maybe you meant: _OBJC_CLASS__PossessionStore)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)[/quote]


One possibility is that you haven’t added Possession.m to the list of source files to be compiled. Go to the Homepwner project and select the Build Phases of the Homepwner target. Then drag Possession.m to the Compile Sources list.


I saw this and resolved it by adding BNRItem.m to the list of build dependencies:

  • Click on project name in the file list
  • Click on Build Phases in the ‘tabs’ across the top-middle
  • Expand the Compile Sources
  • Click the +
  • Select BNRItem.m
  • Go back on build your project

Hope that works for you all!