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

在终端上运行时录入: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端))