Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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

Could not find iPhone X simulator

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

react-native run-ios

以下のエラーが表示

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

解決方法

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

https://stackoverflow.com/questions/55337909/iphone-x-real-device-ios12-2-the-status-bar-seems-to-be-squeezed-and-does-no

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

wheatandcat
メインはReact-Native、 サブでNuxtJS、Golangとかやってます https://www.wheatandcat.me/
https://www.wheatandcat.me/
sharefull
短期間・短時間の仕事に特化したオンデマンドマッチングプラットフォーム「シェアフル」を開発中の、パーソルグループとランサーズの合弁会社
https://sharefull.com
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした