I’m having some issues when compiling my app to iOS.
I’m using sqlite3 and imported as
#import <sqlite3.h>
Well, I only found a file named libsqlite3.0.dylib in my Mac and I copied it to my project.
When I compile it for iOS Simulator, it works just fine. However, when I try to compile the app for iOS Device, it throws an error (Apple Match-O Linker Error) in every call I do in my implementation to sqlite’s function (such as _sqlite3_open, etc.)
How can I compile it to iOS Device?
Thank you!
Instead of simply copying the library, do it like this:
in Xcode Navigator, click on your target (the upmost entry)
go to
Build Phases, thenLink Binary With Librariesadd the libsqlite3.dylib from it’s location at
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOSxx.sdk/usr/lib/