Unable to find utility "instruments", not a developer tool or in PATH

在调试ios上的项目的时候出现报错
unable to find utility "instruments", not a developer tool or in PATH
报错原因:

升级过xcode或者xcode多版本共存下没有设置默认版本

解决方案:

打开xcode,选择

切换到Locations,在command line tools 中选择你需要用的版本


此时完全退出xcode,再次尝试run-ios,一切正常!

原文地址:https://www.cnblogs.com/YooHoeh/p/9095408.html