How to add SQLite file to XCode project?
Hi! I've created an SQLite database file using the terminal on Mac, and I'm trying to use it with an iPhone app. I understand everything about the code necessary to read from the database, insert, etc. But I can't figure out how to "add the SQLite database file to the "Resources" folder in Xcode." Where is the SQLite file saved and how can I access it?
First, in your project add libsqlite3.dylib from Build Phases > Link binary
You should use it from your bundle if you only require readonly access. If you need to write to the file, you need to move it somewhere writable like the documents directory
Follow this code to copy your database (in example a.txt file) in Documents folder
http://stackoverflow.com/...nts-folder
- What file format do i need to add a video to a mac computer? I need to add a video from my iphone 4 to final cut pro on a mac book Could someone please tell me how to convert a file and what website i can do this on and the file format this needs to be to put it on final cut pro
- How to use an SQLite database? I'm following this tutorial: http://osxdaily.com/2010/07/08/read-iphone-sms-backup/ and it comes to a part where the file is actually a "SQLite database" and "can be read and queried like any other database." I'm completely clueless on how to use this, even though I've already downloaded what I THINK can help, "SQLite Database Browser 2.0". Please be as descriptive as possible haha.
- How to release app from Xcode to device without having the purchased apple id? Actually i don't have my own purchased apple id… I've made an application but i don't wanna upload it at apple store so i wanna release it but without having the purchase appleID. So is there any possible way? i already googled it but i could find something which only exists in the much older version of XCODE. Like create a new certificate or something. I'm using Xcode 4.3. And i wanna test it on my jailbroken iPhone 4.
- How to develope iPhone apps without XCode? I'm interested in developing iPhone apps (already an android developer) but I'm a PC man, meaning I can't use XCode without installing os x which I don't feel like doing. Is there another IDE or SDK I can use on PC to develope iphone apps?