【发布时间】:2019-12-29 23:00:04
【问题描述】:
当我运行 Appium doctor 时,它显示:
Running iOS Checks
✖ Unknown SW Version Command: Error: Command failed: /bin/sh -c sw_vers -productVersion
/bin/sh: sw_vers: command not found
Appium-Doctor detected problems. Please fix and rerun Appium-Doctor.
谁能帮我知道这里出了什么问题?
【问题讨论】:
-
检查你的路径变量。
-
是的,我现在检查并修改,现在显示✔ Xcode 安装在 /Applications/Xcode.app/Contents/Developer ✖ Xcode 命令行工具未安装:错误:命令失败:/ bin/sh -c pkgutil --pkg-info=com.apple.pkg.CLTools_Executables /bin/sh: pkgutil: command not found,我是按y安装的,安装后也是一样的。