Expo运行Xcode iOS模拟器时出错:模拟器中没有iPhone设备可用

问题描述 投票:0回答:1

我在Expo上运行iOS模拟器时遇到问题。我看到这两个错误:

Trying to open the project in iOS simulator...
Opening iOS simulator
iOS Simulator device failed to boot. Try opening Simulator first, then running your app.
Error installing or running app. Error: Timed out waiting for iOS Simulator device to boot.
Trying to open the project in iOS simulator...
Booting device in iOS simulator...
There was a problem booting a device in iOS Simulator. Quit Simulator, and try again.
Error installing or running app. Error: No iPhone devices available in Simulator

带有iOS 11.2的iPhone 5s显然可用,并且可以通过Xcode运行的一个简单项目在Xcode模拟器中工作,这告诉我这是世博会的问题。

我正在使用:

  • 博览会版本:3.4.1
  • Xcode版本:9.2
  • Mac OS:10.12.6

请注意-我无法升级操作系统。所以我必须使用Xcode 9.2版。

我尝试过的事情:

  • 将命令行工具设置为正确的Xcode版本,路径为/Applications/Xcode.app

  • 删除所有模拟器并重新添加它们

  • 运行应用程序之前启动模拟器/运行应用程序之后启动模拟器

  • 删除Library / Developer / CoreSimulator / Devices /]下的所有内容

  • 我知道以前曾问过这个问题,但没有给出可靠的答案。从那以后也许有人发现了。

我在Expo上运行iOS模拟器时遇到问题。我看到这两个错误:试图在iOS模拟器中打开项目...打开iOS模拟器iOS Simulator设备无法启动。尝试打开...

xcode react-native ios-simulator expo
1个回答
0
投票

您的手机运行了较新版本的软件,因此您将无法使用Xcode 9.2,必须在自己的手机上运行11.2或更高版本。

© www.soinside.com 2019 - 2024. All rights reserved.