react-native run-ios Command failed: xcrun instruments -s

完整的错误提示

appledeMacBook-Pro-2:AwesomeProject apple$ react-native run-ios
Scanning folders for symlinks in /Users/apple/Desktop/RNTest/AwesomeProject/node_modules (9ms)
Found Xcode project AwesomeProject.xcodeproj
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

Command failed: xcrun instruments -s
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

解决办法

cd ~
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/

你可能感兴趣的:(react-native run-ios Command failed: xcrun instruments -s)