I develop an app for iPad.

At now, i test application on **iPad-5.1 Simulator**. 

And for my unhappiness, application falls down.

1) I use **FacebookSDK 3.0**  

2) Compile **FacebookSDK** into Framework **FBiOSSDK**  

3) Add Framework **FBiOSSDK** to project  

4) See log of **Linker**  

5) Undefined symbols for architecture i386:
 "\_sqlite3\_open\_v2" and many-many "\_sqlite3\_\*" symbols.

Maybe i set wrong options to facebook-sdk project when build it to framework?

Can anybody help? 

After search, i find a solution: 

"Add to project libsqlite3.0.dylib" 

But **Linker** said: 
 "ignoring file /path/libsqlite3.dylib, missing required architecture i386 in file"

-- Main Problem --

After an hour, i've found out, that i link framework in wrong way. 

Script create it in local directory (not in **System/Library/Frameworks** or **Library/Frameworks**).

After adding it, `Framework Search Paths` changes to not default value. 

How to build framework in right way?

Thanks!