简体   繁体   中英

react-native run-ios fails - Could not find simulator

I am using

  • react-native-cli: 2.0.1
  • react-native: 0.55.3
  • 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 .

I get :

Found Xcode workspace App.xcworkspace

Could not find iPhone 6 simulator

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 )

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.

模拟器更新/安装后

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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