Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined symbols for architecture i386 "_OBJC_CLASS_$_Appirater"

After adding Appirater to my iOS project, when I compile, I get the error:

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

After searching and searching on the internet, none of the solutions found helped.

Both my project and target are setup as:

enter image description here

What should I try more?

like image 521
CristiC Avatar asked Jan 21 '12 15:01

CristiC


2 Answers

I think, that you only added files to project, but not to target.
Click on Appirater.m file in Project Navigator and set checkbox near to your target name in Target membership of File Inspector.

like image 89
Tomasz Wojtkowiak Avatar answered Nov 13 '22 04:11

Tomasz Wojtkowiak


It seems that you haven't properly added the Appirater code to your project. Both Appirater.h and Appirater.m must be part of your project, and Appirater.m must be compiled like all your other files.

like image 40
Codo Avatar answered Nov 13 '22 04:11

Codo