ERROR | [iOS] unknown: Encounter
2018-05-11 本文已影响26人
SKCongroo
这个错误:
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
编译 cocoapods 的 xxx.podspec 文件 出现以上错误的解决办法。
打开你的 Xcode,点开设置

然后找到这个地方:

把这个选项选好,默认应该是空的。
然后再去检验 xxx.podspec 文件,应该就没问题了。
出现的其他错误基本都很好解决。