Ahm*_*agy 19 react-native expo
您好,我遇到了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`.Run Code Online (Sandbox Code Playgroud)
我的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
什么都没有
jas*_*ard 11
open -a Simulator
Run Code Online (Sandbox Code Playgroud)
expo start
Run Code Online (Sandbox Code Playgroud)
"Run on iOS simulator"
Run Code Online (Sandbox Code Playgroud)
小智 10
我遇到了同样的问题,可以通过在启动博览会之前手动启动模拟器应用程序来解决此问题。
该应用程序位于/Applications/Xcode.app/Contents/Developper/Applications/Simulator.app
如果它对其他人有帮助,那么首先打开模拟器的修复最初对我不起作用,因为我没有安装命令行工具。您可以打开 xCode,转到preferences > locations > command line tools,如果它是空的,您将需要安装它们。安装后,expo start将给出与 OP 相同的错误,但您可以使用建议open -a Simulator && expo start。
根据此线程,com.apple.CoreSimulator.CoreSimulatorService做什么?,您只需正确执行启动模拟器即可。
killall -9 com.apple.CoreSimulator.CoreSimulatorService
实际上,它可以启动模拟器,但是如果我重新启动模拟器,问题仍然存在。
更新:
苹果提供了10.2.1补丁。通过App Store更新XCode后,它似乎工作得更好。我的模拟器启动时出错,但是在终端中再次按“ i”后,即使重新启动该程序,它也可以正常工作。
别忘了使用以下命令更新最新版本的expo-cli npm install -g expo-cli
| 归档时间: |
|
| 查看次数: |
4997 次 |
| 最近记录: |