0

When I try to use this code:

FacebookViewController *manager = [FacebookViewController sharedManager];

to call a shared manager with this in the .h

+ (FacebookViewController *) sharedManager;

I get this:

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

What is the problem?

Alessandro
  • 4,000
  • 12
  • 63
  • 131

1 Answers1

0

I got that error when I used older Facebook iOS SDK in XCode 4.5.

When I updated Facebook SDK to 3.1 and used the new API, I no longer got that error.

8suhas
  • 1,460
  • 11
  • 20