首页 > 解决方案 > Expo React-Native iOS 模拟器不工作

问题描述

您好,我遇到了 Expo React-Native 的问题。每当我尝试启动 iOS 模拟器时。我收到此错误:

Simulator is installed but is identified as 'com.apple.CoreSimulator.SimulatorTrampoline'; don't know what that is.
Simulator not installed. Please visit https://developer.apple.com/xcode/download/ to download Xcode and the iOS simulator. If you already have the latest version of Xcode installed, you may have to run the command `sudo xcode-select -s /Applications/Xcode.app`.

世博会结果截图

我的 NPM 版本是6.7.0 react-native-cli: 2.0.1 react-native: 0.57.1 ​​ Expo 版本2.11.9

我还确保我在 Xcode 上的命令行工具设置完美 Xcode CommandLineTools

最后,我也尝试运行命令sudo xcode-select -s /Applications/Xcode.app

什么都行。。

标签: react-nativeexpo

解决方案


我遇到了同样的问题,通过在启动 expo 之前手动启动模拟器应用程序来修复它。

该应用程序位于 /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app


推荐阅读