0

i developed one iPhone application, in it i used sqlite3 for data storage . it is working

fine in emulator. i have one doubt that is ,when we install this application in a real iPhone is it working properly with out any additional process..

i mean is there any need to install sqlite3 in iPhone separately ?

pls help me ..

thanks and regards.

random
9,97810 gold badges71 silver badges85 bronze badges
asked Jul 29, 2009 at 8:48

4 Answers 4

3

SQLite is compiled directly into your app as a single C file (the amalgamation) that you include in the build. This means that there is no library that you need to install separately.

answered Jul 29, 2009 at 9:01
Sign up to request clarification or add additional context in comments.

Comments

0

it should be fine, I did not have to do anything weird like installing sqlite3 on the iPhone. Best bet is to get hold on an iPhone and put your application on it and test it. I have heard that some people find something crashes on the iPhone but not on the simlulator so its better to be safe than sorry (note its a simulator not an emulator so it is not going to emulate an iPhone 100%).

answered Jul 29, 2009 at 9:02

1 Comment

hanks you very much.. dear Allan .
0

Yes, it should work fine. But you should consider migrating to Core Data: it provides a powerful way to deal with data without you having to muck around in sqlite.

answered Jul 30, 2009 at 15:37

1 Comment

True but lots of apps are cross platform even using C++ on the iphone with .mm files or compiling on g++. While Core Data is great for just iphone or mac platforms, sqllite works on all platforms even consoles (especially if you want to make a cross platform game engine).
0

If you use the sqlite dynamic library that is installed on the iPhone, how do you guarantee that header file version your app was compiled against is compatible with the dynamic library on the iPhone. This can happen when compiling against a different version of the SDK with differing sqllite versions then what the iPhone has installed.

akjoshi
15.8k13 gold badges108 silver badges122 bronze badges
answered Nov 8, 2009 at 3:05

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.