LoginSignup
4
3

More than 5 years have passed since last update.

iOS Simulator上で作成したCoreDataの格納場所

Posted at

iOS Simulator を使用していて、 CoreData の中身が確認したくなったのですが、格納場所が分からず困ってしまったので、調べた結果を残しておきます。

格納場所

~/Library/Developer/CoreSimulator/Devices/<Device ID>/data/Containers/Data/Application/<App UUID>/Documents/

Device ID には、シミュレータごとのIDが入ります。
Xcode の Windows > Devices > Identifire で確認することができます。

App UUID には、アプリのUUIDが入ります。
これを確認する方法は見当たらなかったので、なんとか総当たりで確認しました。

.sqlite

SQLite のファイルは、DB Browser for SQLite などの専用のビューワなどで確認することができます。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3