![]() NOTE that you can also Save your database file from your device, via iTunes, to your Mac, and then examine the database on your Mac if you have appropriate SQLite reader software. Your database file will (should) now be in the correct location for use by your app. Select your database file from your Mac's storage and press the blue Add button, then press the blue Done button.Ĩ. Scroll to the bottom of the panel at right to show the "Add" button and then click it.ħ. You should then see your app listed, so click on it.Ħ. You should then see a list of options on the left of screen: click File Sharing.ĥ. With the device connected to your Mac, open iTunes and click the small device icon near the top left of screen. The Type property should be Boolean and the Value "YES"Ĥ. Press the + button that is to the right of the first line "Information Property List" and then, in the box that appears, type "Application supports iTunes file sharing". In Xcode's Project Navigator (View > Navigators > Show Project Navigator) at the left of screen, click on istĢ. Please, some help or advice, I would appreciate it. I'm going crazy looking for possible solutions on the internet, but none works for me and I've been standing for 3 months trying to run the application on the iphone. I don't know if what I am doing is correct or there is another way to do it. Because the previous code gives me a route on the iphone, and I try to put the sqlite database there but it does not run, the application is blocked because it cannot find the database, even if I put it there. The problem is when I connect my iphone and try to run the application. NSString *dbPath = [documentsDir route is - I get the path, and copy the sqlite database, so the application works perfectly in xcode. Sqlite3 *bd NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) ![]() I have the following code to know where I have to put the database. ![]() I run the application in xcode, with the simulator. An application that has a sqlite database.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |