I am trying to view the contents of the persistent store ( persistent store ) of my application through the terminal ( terminal ).

In the terminal I enter:

find ~ -name 'LeagueManager.sqlite' 

where LeagueManager is the name of my application

further I enter:

 sqlite3 LeagueManager.sqlite 

then I get the path to the persistent storage:

/Users/Aleksandr/Library/Developer/CoreSimulator/Devices/ABF32E90-AED7-4240-8458-75725577D185/data/Containers/Data/Application/467ADE4A-3E7B-4B36-BA75-221E18426CE3/Documents/LeeeEE42B4B36-BA75-221E184263DDect/

Further, the terminal outputs the line:

find: / Users / Aleksandr / Library / Saved Application State / com.adobe.flashplayer.installmanager.savedState: Permission denied

where it says at the end: Permission denied - Access denied.

further gives:

 SQLite version 3.7.13 2012-07-17 17:46:21 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> 

Then I enter the command to show the database schema

 sqlite> .schema 

and nothing happens.

How to allow access to the database?

  • Tried the same thing with the sudo prefix? - iFreeman pm
  • @iFreeman, sudo instead of find? - Alex Burov 1:54 pm
  • before the opening team - iFreeman
  • @iFreeman, entered the repository, and then no reaction to the commands .schema and .tables - Alex Burov
  • @iFreeman here is terminal: sudo find ~ -name 'LeagueManager.sqlite' Password: /Users/Aleksandr/LeagueManager.sqlite / Users / Aleksandr / Library / Developer / CoreSimulator / Devices / ABF32E90-AED7-4240-8458-75725577D185 / data / Containers / Data / Application / 6C4F259B-61AC-4849-9570-8662B8D5F243 / Documents / LeagueManager.sqlite sqlite3 LeagueManager.sqlite Mac-mini-Aleksandr: ~ Aleksandr $ sqlite3 LeagueManager.sqlite SQLite version 3.7.13 2012-07-17 17: 46:21 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .schema sqlite> .tables sqlite> - Alex Burov

0