Oswaldo Leon
Oswaldo Leon

Reputation: 261

Xcode 5.1:error for architecture x86_64 Facebook ios sdk

i have 4 errors and the project is not compiling.

  Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_FBAppCall", referenced from:
  objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_FBSession", referenced from:
  objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_Facebook", referenced from:
  objc-class-ref in AppDelegate.o

I have the facebook ios sdk 3.13.1

What are the consequences if I put $(ARCHS_STANDARD_32_BIT)?

Upvotes: 0

Views: 3334

Answers (3)

Umair
Umair

Reputation: 398

I have found the fix in this stackoverflow post thread

"The current instructions on Facebook's SDK Getting Started page forget to mention this. In version < 4 of the SDK, there was just one file to drag in to your project."

In my case i have to include FBSDKShareKit.frameworkto build successfully.

Upvotes: 0

user2783166
user2783166

Reputation: 71

Build phases -> "Link Binary with Libraries" -> + (add) -> "Add Other" -> point to the location of FacebookSDk.framework

Hope this helps.

Upvotes: 4

Brandon J Brotsky
Brandon J Brotsky

Reputation: 523

Although this isn't for a Facebook application, I believe it is the same issue. I found this task to be difficult myself so I made a video explaining how to remove the arm64 from the valid architectures. Hope it helps!

https://www.youtube.com/watch?v=d-pJLRy4rVk&feature=youtube_gdata_player

Upvotes: 0

Related Questions