今天上传库到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.

DamonScreenShot 2018-01-20 18.11.28.png

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

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

DamonScreenShot 2018-01-20 20.29.39.png

Last modification:January 20th, 2018 at 08:37 pm
如果觉得我的文章对你有用,请随意打赏: ☞已打赏列表