在終端上運行時錄入: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/(前提是你已經(jīng)安裝好xcode)
插一句,運行時后加--simulate "設(shè)備名稱",可以設(shè)定運行的模擬器。