how to resolve bug of xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

0x00 現(xiàn)象

Scanning 643 folders for symlinks in /node_modules (14ms)
Found Xcode workspace xxxxx.xcworkspace
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


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leyeah@0.0.1 react-native-ios: `react-native  run-ios`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the leyeah@0.0.1 react-native-ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wangxiaolong/.npm/_logs/2018-01-09T02_42_18_322Z-debug.log

Process finished with exit code 1

0x01 解決方案

解決方法:在 終端執(zhí)行如下命令 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/
注意:前提是你已經(jīng)安裝了xcode
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容