胡东东博客

unable to find utility "simctl"的解决方案


今天上传库到cocoapods的时候,编辑出现了以下报错

- ERROR | [iOS] unknown: Encountered an unknown error (/usr/bin/xcrun simctl list -j devices

xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
) during validation.

[!] The spec did not pass validation, due to 1 error.

百度上搜了半天居然没有发现解决方案,最后终于在stackoverflow上面找到了类似问题,得以解决。

解决方案就是去xcode设置里面,将Command line Tools设置一下,在Xcode>preferences>Locations里面,设置之后再运行终端即可

当前页面是本站的「Baidu MIP」版。查看和发表评论请点击:完整版 »