https://macacajs.github.io/zh/guide/environment-setup.html#%E5%AE%89%E8%A3%85-node-js
配置环境:
(cnpm安装:https://blog.csdn.net/qq_43437571/article/details/88703774
)
1.安装node.js。
- usbmuxd
3.ideviceinstaller
4.ios-webkit-debug-proxy
5.请安装 macaca-ios 驱动
image.png
需要安装xcode
6.安装 macaca-android 驱动

image.png
根据错误提示,删掉node_modules,重试,成功。
7.命令行工具

image.png
环境检查:

image.png
设置java_home
https://blog.csdn.net/a158123/article/details/79684499
安装xcode:
安装xcode是旧版本,通过苹果网站下载安装的。解压后,要将xcode手动移动到应用程序中,否则mocaca无法识别已经安装了xcode。
再次检查:

image.png
