LoginSignup
3
1

More than 5 years have passed since last update.

UserDefaultsの保存場所

Last updated at Posted at 2018-07-13

使用シュミレータのIdentifierを調べる

まずはxcodeを開き、メニュバーのWindow→Devices and Simulatorsを開く。

スクリーンショット 2018-07-13 10.00.50.png

開いた画面の上部にIdentifier:###########があるためメモ、コピーのいずれかをしておく。
SS上ではC3CDE390-D7FA-########のやつです。

スクリーンショット 2018-07-13 10.02.45.png

ターミナルより.plist探し

$cd ~/Library/Developer/CoreSimulator/Devices/

移動後 $lsで見ると端末の拡張子がたくさんある。
先ほど調べたIdentifierと同様なものに移動

$cd C3CDE390-D7FA-########

.plistの検索を行う。

find ./ -name "ここですよ".plist

スクリーンショット 2018-07-13 10.16.24.png

アプリ名.plistまでのpathが表示される。

Finderにて見つけた.plistを開く

移動/フォルダへ移動を選択

スクリーンショット 2018-07-13 10.23.47.png

~/Library と入力し移動

スクリーンショット 2018-07-13 10.24.49.png

あとは先ほどfind ./ -name "ここですよ"で表示されたpath通りに目的地まで移動し、開くのみ

これでUserDefaultsの中身がわかりますね!

3
1
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
3
1