ComosGuy
ComosGuy

Reputation: 81

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?

Upvotes: 3

Views: 129

Answers (1)

ComosGuy
ComosGuy

Reputation: 81

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!

Upvotes: 2

Related Questions