在準(zhǔn)備解決線上app中的bug時觉吭,執(zhí)行命令行定位出錯代碼位置的時候出現(xiàn)下面這種錯誤
xcrun: error: active developer path ("/Applications/Xcode 7.1.app/Contents/Developer") does not exist, use xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select
)
附:我上面出錯是因為我的xcode7.1被我刪了
解決方法:
終端執(zhí)行sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
命令,然后再輸入一次系統(tǒng)的密碼逗载,完成。