Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble when I try to run Archive command in XCode

I'm making an app with Facebook validation. It is working fine on simulator and in the device.

But, when I try to "Archive" (Product => Archive), I get this error:

ld: library not found for -lfacebook_ios_sdk
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The libraries are okay, otherwise it would not compile on simulator/device.

I don't know if this information is relevant, but my project is an ARC project.

Does anyone know what this error could mean?

like image 256
ComosGuy Avatar asked Mar 17 '26 00:03

ComosGuy


1 Answers

I solved the problem by just removing the "libfacebook_ios_sdk.a" reference from my Link Binary Libraries and adding it again.

I dont know why it worked, but worked!

like image 192
ComosGuy Avatar answered Mar 18 '26 15:03

ComosGuy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!