react-native 信息未检测到 Xcode 9

react-native info not detecting Xcode 9

在我的 mac 上,为了能够开发 react-native 应用程序,我使用 npm 安装了 react-native-cli 和 create-react-native-app。

当我运行:

react-native info

我看到以下输出:

Environment:
  OS:  macOS Sierra 10.12.6
  Node:  6.11.4
  Yarn:  Not Found
  npm:  3.10.10
  Watchman:  4.9.0
  Xcode:  Not Found
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: 16.0.0-alpha.12 => 16.0.0-alpha.12
  react-native: ^0.48.4 => 0.48.4

如您所见,Xcode显示为"Not Found"。我的系统 运行ning Xcode 9。

为了让 react-native 与 Xcode 9 一起工作,我应该在我的 OS 上检查/安装什么?

我安装了 Expo XDE 并试图从那里创建和 运行 一个项目。我在 XDE 中看到了这个错误。帮我解决了问题

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.