Reputation: 381
I encountered some error during facebook integration. Did i configure the Facebook SDK correctly? Please advise.
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 did the following step:
XCODEBUILD_PATH=/Developer/usr/bin
to: XCODEBUILD_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin
I just type declare the facebook variable and run. It shows me the errors
facebook = [[Facebook alloc] initWithAppId:@"myAppID" andDelegate:self];
==============================
EDIT: Ok. I have found the solution. I have missed out 1 step which to link against the libfacebook_ios_sdk.a in Xcode
Upvotes: 4
Views: 3250
Reputation: 381
Ok. I have found the solution. I have missed out 1 step which to link against the libfacebook_ios_sdk.a in Xcode
Upvotes: 3