How to browse Core Data in my app running on my iPhone?

前端 未结 4 770
深忆病人
深忆病人 2021-01-31 11:44

I\'m working on an iPhone project that uses core data and trying to figure out a way to browse easily how data is being stored. Specifically, I am storing images in core data, a

4条回答
  •  情深已故
    2021-01-31 12:22

    Find the location of the sqlite database on your sim.

    Then, in Terminal, use a command like this:

    sqlite3 myDataBase.sqlite
    

    At the prompt sqlite>, type

    .dump
    

    On the simulator, it will be located somewhere like:

    ~/Library/Application Support/iPhone Simulator/[OS version]/Applications/[appGUID]/

提交回复
热议问题