Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
12
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

@wheatandcat

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

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

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のままにしておいたほうが良さそう

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
12
Help us understand the problem. What are the problem?