On 22 Oct 2013, at 9:17am, Igor Korot <ikoro...@gmail.com> wrote: > Now I am trying to add the "sqlite3.c" but I couldn't. > Going to "File"->"Add Files to,,," I see only my .cpp, .h and sqlite3.h > files. I don't see sqlite3.c file in the "Add File" dialog. > > Is there any setting I need to turn in order to be able to do so?
Drag your .c and .h files directly from the Finder into some part of the project structure window on the left of the Xcode layout. There's usually a section called something like 'Other source' or something like that, though theoretically they can go anywhere. Once you've done that, look at the properties for those files and make sure that Xcode knows that the .c file is C, not C++. > Also about the db file. > I need to move it to the bundle. Again, drag it into some part of the window on the left, then look at the properties and make sure that Xcode has it marked for inclusion in the bundle. No need to specifically set up another build stage or anything that complicated. >From the way you asked the question I assume that your application will only >need to read from that database, not change it. That's fine. OS X may be a >little alarmed at an application which tries to change the contents of its own >bundle. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users