0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

XcodeでiOSのSimulatorが真っ白のままの対処法

Posted at

1.はじめに

Swiftを始めてまだ間も無く、基本的なことですぐにつまづいています。
今回はせっかく書いたコードをいざSimulatorで起動しようとしたら、なんと画面が真っ白のまま。コードを何度も確認しても間違いは見つからず、、途方に暮れていたところ解決策がわかりましたので共有します。

2.状態

画面が真っ白。
image.png

3.解決方法

コードの中にBreakpointがありました。
番号に青い付箋のようなものがついています。
こちらがあると処理が止まってしまうようです。
なので、削除するとSimulatorが動き出しました。

削除方法

  1. Breakpointにカーソルを当てて右クリック
    スクリーンショット 2023-06-22 11.06.59.png
  2. メニューの中から「Delete Breakpoint」を選択
    スクリーンショット 2023-06-22 11.07.30.png

or

ドラッグ&ドロップでも削除可能

4.備考

ちなみに、Breakpointとはそのポイントで処理を中断させるもののようです。
コードの処理が止まってしまうので、Simulatorも真っ白になっていたというわけのようです。

もし同じように悩んでいる人がいましたら是非参考にしてみてください。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?