LoginSignup
19
12

More than 5 years have passed since last update.

Xcode10.2アップデート後にreact-nativeで「Could not find iPhone X simulator」がでて立ち上がらない人向けの記事

Last updated at Posted at 2019-03-26

取り急ぎ、さきほど発生したので記載

Could not find iPhone X simulator

シミュレータで起動したら上記のエラーが表示

react-native run-ios

以下のエラーが表示

スクリーンショット 2019-03-26 14.22.47.png

解決方法

既にstackoverflowにあがっていたのと同じ手順でシミュレータが起動するようになった

  1. 「open ./node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js」
  2. 以下を書き換え
before
    // Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
    if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
      continue;
    }
after
    // Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
   /*
    if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
      continue;
    }*/
    if (!version.startsWith('com.apple.CoreSimulator.SimRuntime.iOS') && !version.startsWith('com.apple.CoreSimulator.SimRuntime.tvOS')) {
      continue;
    }

  1. react-native run-ios → シミュレータ起動

おわり

react-native使っている人は一旦Xcodeは10.1のままにしておいたほうが良さそう

19
12
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
19
12