4
votes

I have no idea why this error is happening. I have imported the facebook ios sdk static library and I get that error. What could be causing it?

Thanks for any help guys

Undefined symbols for architecture i386: "_OBJC_CLASS_$_Facebook", 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)

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_Facebook", 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)
1
You need to link whatever library this Facebook class is implemented in. - jgh
How did you fix this problem? - Lucky_girl

1 Answers

3
votes

The linker can't find symbols related to class Facebook.

A good first place to look would be to check whether there is a simulator (x86) build of the SDK included in your project. Usually XCode takes care of selecting the right architecture for you, but it's possible you just have the ARMv7 version.

Care to share the command-line for the linker with us? (you can get this by selecting the log tab in the project navigator - it's the rightmost - and then drilling down to get the command-line for each build action.)