2
4

More than 1 year has passed since last update.

expoでiOSシュミレーターが開けない

Last updated at Posted at 2021-11-19

ひさしぶりに環境の再構築をしてexpoをインストールしたら下記のような表示が出てiOSシュミレータが起動しません。Xcodeはすでにインストール済みです。

› Opening on iOS...
✔ Xcode needs to be installed (don't worry, you won't have to use it), 
would you like to continue to the App Store? … (Y/n)
Unable to verify Xcode and Simulator installation.

xcode-select --installをしてもすでにインストール済みと表示されます。

❯ xcode-select --install
xcode-select: error: command line tools are already installed, 
use "Software Update" to install updates

解決方法

xcodeの環境設定の「Location」の一番下の「Command Line Tools」が空白になっていたので、きちんと選択すると治りました。

スクリーンショット 2021-11-19 22.44.15.png

たぶんXcodeを使う前にHomebrewやらVSCodeをインストールした時に「Command Line Tool」を入れてしまったので、パスがXcode側で認識していなくて影響が出たような気がします。

ちょっとハマったので共有します。

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