Facebook Integration with Xcode 4.3

I encountered some error during facebook integration. Did I configure the SDK for Facebook correctly? Please inform.

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

I took the next step:

  • We downloaded the latest version of the Facebook SDK (facebook-facebook-ios-sdk-v1.1-11-g07626c3.zip)
  • Modify the build_facebook_ios_sdk_static_lib.sh file as follows: XCODEBUILD_PATH=/Developer/usr/bin to: XCODEBUILD_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin
  • Add facebook-ios-sdk folder (from lib folder) to my project
  • I just type in the facebook variable declaration and run. He shows me mistakes

    facebook = [[Facebook alloc] initWithAppId:@"myAppID" andDelegate:self];

================================

EDIT: OK. I have found a solution. I skipped 1 step to link to libfacebook_ios_sdk.a in Xcode

  • Go to the Binary with libraries link.
  • Click "Add another"
  • Add libfacebook_ios_sdk.a
+4
source share
1 answer

Ok I have found a solution. I skipped 1 step to link to libfacebook_ios_sdk.a in Xcode

  • Go to the Binary with libraries link.
  • Click "Add another"
  • Add libfacebook_ios_sdk.a
+3
source

Source: https://habr.com/ru/post/1402830/


All Articles