I've been reading through this tutorial for using a SQLite database within an iPhone app. This is great and I've got everything working nicely, in the Simulator. As soon as I build to device I get the following linker errors:
ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libgcc_s.1.dylib, missing required architecture arm in file ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystem.dylib, missing required architecture arm in file ld: in /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libobjc.A.dylib, missing required architecture arm in file collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
I've tried including different versions of the libsqlite3.0.dylib files as mentioned around this site and other message boards but it doesn't make anything any different (and yes, I have tried cleaning).
If anyone has had a similar issue, how do you get around this?