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

对cocoapods spec执行校验 pod spec lint时报出这个:

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

大致意思是环境变量少developer tool, 解决方法就是打开xcode的设置,
Preferences > Locations > Command Line Tools 中选择下当前的xcode,可能会提示输入密码。完成即可。