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?

Answers


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

edit

Also found this now...


Need Your Help

Destructor not called when object on stack is overwritten

c++ destructor

Today I was wondering about c++ destructors so I wrote a small test program. That answered my original question but raised a new one which is:

Print text multiple times in Brainfuck

loops brainfuck

I tried out this hello world program in Brainfuck. How can I print the text multiple number of times?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.