Reputation: 14925
I am trying to compile a iOS application that uses SQlite in Xcode 4 (for Snow Leopard) and I am getting the following error -
error: /Apps/Cocktails/libsqlite3.dylib: No such file or directory
I copied the file libsqlite3.dylib into the Xcode project but the error won't go away. How do I resolve the error ?
EDIT - Here is the complete error log
CpResource libsqlite3.0.dylib /Users/ashishagarwal/Library/Developer/Xcode/DerivedData/Cocktails-gzqdmwrvzqciekgjzxnriugcxwwm/Build/Products/Debug-iphonesimulator/Cocktails.app/libsqlite3.0.dylib
cd /Apps/Cocktails
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Apps/Cocktails/libsqlite3.0.dylib /Users/ashishagarwal/Library/Developer/Xcode/DerivedData/Cocktails-gzqdmwrvzqciekgjzxnriugcxwwm/Build/Products/Debug-iphonesimulator/Cocktails.app
error: /Apps/Cocktails/libsqlite3.dylib: No such file or directory
Upvotes: 1
Views: 3918
Reputation: 950
It looks your library is missing libsqlite3.dylib and
libsqlite3.0.dylib, so copy these files from any other computer and place these files in your computer.
1:Open xcode on the computer where these files exists, add libsqlite3.0.dylib in your project from link binary with libraries.
2: Right click on the libsqlite3.0.dylib and show in finder.
3: Copy two files libsqlite3.0.dylib and libsqlite3.dylib and place on the same location on other computer where these files are missing.
Here you go, I had the same problem and solved in this way.
Upvotes: 5