Search code examples
facebookios6facebook-ios-sdkxcode4.6

Upgrade from Facebook iOS SDK 3.2.1 to 3.5 gave me an error with FBCrypto


After installing the new sdk I cleaned the project and build it. It fails with this message:

Undefined symbols for architecture i386: "_SecRandomCopyBytes", referenced from: +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o) -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o) "_kSecRandomDefault", referenced from: +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o) -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Same problem anyone? Solutions?


Solution

  • Well, you need to include the security framework and the libsqlite3.dylib as stated here. It works now.

    edit

    Also found this now...