iphone - unable to open sqlite database from terminal -
i using core data in application , trying see data inserted terminal.
i trying open sqlite database via terminal per document. however, when try open it, getting following error. not quite sure, what's going on.
i tried removing other previous versions of app's database. tried attaching database using following command
sqlite> attach "myapplication.sqlite" db1;
none worked.
unable open database "/users/mymacbook/library/application support/iphone simulator/6.1/application/7e563301-f42c-48a5-8c8d-60c6b096dc92/documents/myapplication.sqlite": unable open database file
any appreciated.
thanks
i find easier this
$ sqlite3 myapplication.sqlite
at command prompt
assuming you're in directory myapplication.sqlite resides.
if don't want way
$ cd "/users/mymacbook/library/application support/iphone simulator/6.1/application/7e563301-f42c-48a5-8c8d-60c6b096dc92/documents/" $ sqlite3 > attach "myapplication.sqlite" db1;
Comments
Post a Comment