简体   繁体   English

react-native run-ios失败-找不到模拟器

[英]react-native run-ios fails - Could not find simulator

I am using 我在用

  • react-native-cli: 2.0.1 react-native-cli:2.0.1
  • react-native: 0.55.3 反应本机:0.55.3
  • Xcode : 10.2.1 Xcode:10.2.1

I am trying to get a certain react-native project to build and run for the first time from my system using react-native run-ios . 我正在尝试使用react-native run-ios从我的系统中获取一个特定的本地项目来首次构建和运行。

I get : 我得到:

Found Xcode workspace App.xcworkspace 找到Xcode工作区App.xcworkspace

Could not find iPhone 6 simulator 找不到iPhone 6模拟器

I looked for the different answers here but they didn't help me solve my problem (I changed the condition in node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js ) 我在这里寻找了不同的答案,但是它们并没有帮助我解决问题(我更改了node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js

What's the meaning of this error ? 此错误是什么意思? How to get the project to build and run ? 如何使项目构建和运行?

Thanks Yaron 谢谢亚伦

This happened to me after updating to the latest Xcode. 更新到最新的Xcode之后,这发生在我身上。

模拟器更新/安装后

I went to the Download simulators, chose the newest one, and after it got downloaded and installed, I got back the devices you see in the screenshot 我去了下载模拟器,选择了最新的模拟器,然后下载并安装了模拟器,然后取回了您在屏幕截图中看到的设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM