【发布时间】:2020-02-01 01:46:47
【问题描述】:
我是从 react-native 官方网站安装的,如下所示。 (node.js 和 openJDK 的安装方式不同)
版本信息
- Mac OSX:Mojave 10.14.6
- XCode:版本 11.0 (11A420a)
- 节点(nvm):10.15
- 反应:16.9.0
- 反应原生:0.61.1
- react-native-cli : 2.0.1
- 守望者:4.9.0
- openjdk 11.0.1 2018-10-16
OpenJDK 运行时环境 18.9(内部版本 11.0.1+13)
OpenJDK 64 位服务器 VM 18.9(内部版本 11.0.1+13,混合模式)
XCode 首选项
位置 > 命令行工具:Xcode 11.0 (11A420a)
组件 > 模拟器:iOS 12.2、iOS 12.1、iOS 11.1、iOS 11.0
将配置从 podfile 更改为 platform: ios, '9.0' 到 platform: ios, '11.0 '。
代码执行
react-native init rntest
react-native run-ios
(我没有看到要启动的应用图标。)
守望者错误消息
Watchman: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2019-10-03T03:19:20,686: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/myname-state/sock! (No such file or directory)
如何运行 react-native 的初始应用?
【问题讨论】:
标签: ios reactjs react-native