- React-native 无法运行
- 命令打包报错 xcrun: error: unable to f
- xcrun: error: unable to find uti
- xcrun: error: unable to find uti
- xcrun: error: unable to find uti
- xcrun: error: unable to find uti
- xcrun: error: unable to find uti
- xcrun: error: unable to find uti
- xcrun: error: unable to find uti
- xcrun: error: unable to find uti
终端调用XCode时,偶尔会出现下列错误。
```
- 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.
```
错误的原因是XCode未设置Command line tools,解决方法就是在`XCode` -> `Preferences...` -> `Locations`中设置Command line tools。
![](https://img.haomeiwen.com/i10145759/27ff61eb993d2135.jpg)
网友评论