How do I access SQLite database instance on iPhone?

前端 未结 8 627
予麋鹿
予麋鹿 2021-01-30 05:19

I\'m developing an iPhone app that uses the built-in SQLite database. I\'m trying to view and open the database via the sqlite3 command line tool so I can execute a

8条回答
  •  逝去的感伤
    2021-01-30 05:54

    Instructions for Xcode 6.0.1

    1. Xcode > Open > YourProject
    2. Xcode > Product > Run
    3. Xcode > Window > Devices
    4. (Column 1 - select) Devices > YourDeviceName
    5. (Column 2 - select) Installed Apps > YourAppName
    6. (Column 2 - select) Cog under 'Installed Apps' list
    7. (Pop-Up - select) Download Container...
    8. Save to location
    9. Right click on 'YourAppName.xcappdata'
    10. Select 'Show Package Contents'
    11. AppData > Documents > YourDatabase.sqlite

    enter image description here

提交回复
热议问题