Xcodeの悪いところで、使っているうちにどんどんとログなどがたまり、重くなる傾向があります。
私の場合は下記の方法で解決しましたので、参考まで。
手順
1.まずログのディレクトリに移動します
cd ~/Library/Developer/Xcode/iOS Device Logs
2.一覧を見てみると、現在使用している6.1以外のログが沢山残っている。。しかもiOS Device Logs 5.1.1.dbサイズでかっ!
-rw-r--r-- 1 hoge-user hoge-group 90112 9 22 10:52 iOS Device Logs 6.0.1.db
-rw-r--r-- 1 hoge-user hoge-group 32768 10 22 16:54 iOS Device Logs 6.0.1.db-shm
-rw-r--r-- 1 hoge-user hoge-group 0 9 22 10:52 iOS Device Logs 6.0.1.db-wal
-rw-r--r-- 1 hoge-user hoge-group 90112 6 3 12:48 iOS Device Logs 6.0.db
-rw-r--r-- 1 hoge-user hoge-group 32768 10 23 16:08 iOS Device Logs 6.0.db-shm
-rw-r--r-- 1 hoge-user hoge-group 0 6 3 12:48 iOS Device Logs 6.0.db-wal
-rw-r--r-- 1 hoge-user hoge-group 90112 10 23 16:08 iOS Device Logs 6.1.db
-rw-r--r-- 1 hoge-user hoge-group 32768 11 18 15:49 iOS Device Logs 6.1.db-shm
-rw-r--r-- 1 hoge-user hoge-group 0 10 23 16:08 iOS Device Logs 6.1.db-wal
-rw-r--r-- 1 hoge-user hoge-group 60035072 8 20 14:59 iOS Device Logs 5.1.1.db
-rw-r--r-- 1 hoge-user hoge-group 32768 9 10 18:39 iOS Device Logs 5.1.1.db-shm
-rw-r--r-- 1 hoge-user hoge-group 1207192 9 4 13:00 iOS Device Logs 5.1.1.db-wal
-rw-r--r-- 1 hoge-user hoge-group 90112 4 10 2014 iOS Device Logs 5.1.db
-rw-r--r-- 1 hoge-user hoge-group 32768 6 3 12:48 iOS Device Logs 5.1.db-shm
-rw-r--r-- 1 hoge-user hoge-group 0 4 10 2014 iOS Device Logs 5.1.db-wal
3.とりあえず適当な場所に退避する(rmしてしまうと、問題があった時に困りますので)
mv iOS\ Device\ Logs\ 5.1.* ~/tmp
4.xcodeを再起動する
注意点
- ~/Library/Developer/Xcode/直下にDeveloperPortalのバージョンごとのファイルがあるけど、間違って触らないように。補完が効かなくなる。
- Xcodeは古いバージョン名のファイルがいくつかあるが、予想外に使っているものも存在する。。(5.1.1とか)