美文网首页
终端允许Native React工程时报错(iOS端)

终端允许Native React工程时报错(iOS端)

作者: 第一次左手 | 来源:发表于2018-06-27 16:26 被阅读12次

在终端上运行时录入:react-native run-ios时报出这样的错误

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

这是终端允许该行命令:sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/(前提是你已经安装好xcode)

插一句,运行时后加--simulate "设备名称",可以设定运行的模拟器。

相关文章

网友评论

      本文标题:终端允许Native React工程时报错(iOS端)

      本文链接:https://www.haomeiwen.com/subject/ixfiyftx.html