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!
So, after a long time i make such things to make this FacebookSDK work:
1)First, I delete build of FacebookSDK framework (rm -rf) and run script for building framework (build_framework.sh)
2)After that, i add to project (project -> build phases -> link binary with libraries ) FacebookSDK.framework (from local directory, with button add other) and libsqlite3.0dylib and libsqlite3.dylib (just search it in search-field!)
0) or 3)And After that i make this: find directory ~/Library/Developer/Xcode/DerivedData and delete EVERYTHING from this. (use command rm -rf dir_name/*)
You can do it from step 3) that i also named step 0).
Here i provide a script, which can help you