1 /Users/lihongz/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Permission denied
解决办法:react-native start前面加sudo -s 加强权限
2 8081端口被占用问题
解决办法:1 实用其他端口
2 kill 占用端口的进程
2.1 lsof -i tcp:8081查看占用端口号都进程信息
2.2 kill pid(换成进程id) ,完成后,可以运行2.1命令检测是否成功
3 unable resove moule xxxx react-native-webview
或者RNCwebview was not found UIManage
解决办法:
$ yarn add react-native-webview
$ react-native link react-native-webview
最重要都一步,重新build工程 react-native run-android 或者react-native run-ios;
4 unable to find utility "simctl"的解决方案
打开xcode偏好设置,command line tools 选择codexxx版本
5 readablenativearray cannot case to string
解决办法:JSON.stringify(xxx);