LoginSignup
1
1

More than 3 years have passed since last update.

iosのシミュレータ立ち上げの際に[Error: Could not find iPhone X simulator](ReactNative)

Last updated at Posted at 2019-08-24

シミュレータ起動の際、エラー発生

ReactNativeでiosのシミュレータを立ち上げる際に下記エラーが発生しました。

Found Xcode project ReactNativePlatform.xcodeproj

Could not find iPhone X simulator

Error: Could not find iPhone X simulator

シミュレータが無いという文言が書いてあります。

解決法

/node_modules/react-native/local-cli/runIOS/findMatchingSimulator.jsを開いて、下記記述を変更します。

if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
  continue;
}

if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')) {
  continue;
}

参考

react-native run-ios returns Error: Could not find iPhone X simulator

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