LoginSignup
1
2

More than 5 years have passed since last update.

"xcodeが予期しない理由で終了しました。"

Last updated at Posted at 2018-10-09

背景

困った。
xcodeのplaygroundで遊んでいたら、突然xcodeが落ちて、どのプロジェクトも開けなくなった。

エラーメッセージ

xcodeが予期しない理由で終了しました。と言われ、長文のエラーメッセージが表示された。

以下のメッセージにヒントがありそうだが、調べてもよくわからない。

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY)

行ったこと①

以下の記事を参考に、
- http://www.iwazer.com/~iwazawa/diary/2017/01/cannot-open-xcode8-xcworkspace.html
- https://dev.classmethod.jp/smartphone/iphone/remove-xcode-derived-data/

rm -rf ~/Library/Developer/Xcode/DerivedData/*

で、DerivedDataディレクトリの中身を全て削除した。

が、やはりxcodeは開けないまま。

行ったこと②

playgroundで遊んでいる時に落ちたので、playgroundを削除して見ることに。

rm -rf ~/Library/Mobile Documents/com~apple~CloudDocs/Playground/MyPlayground.playground

結果は、、、

xcodeが無事開けた!!

まとめ

理由は分かりませんでしたが、playgroundでコードを実行中にxcodeが落ちた場合は、一度playgroundを削除してみることで再びxcodeが使用できるようになる?

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