alcatraz

用過Sublime text的都知道Package control。其實(shí)xcode的也有同樣的神器alcatraz

網(wǎng)上已經(jīng)有很多的alcatraz安裝方法?;径际且粯拥?alcatraz的安裝方法

這里介紹下安裝過程中出現(xiàn)的錯(cuò)誤及解決辦法。
在運(yùn)行該語句curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh會(huì)出現(xiàn)各種各樣的錯(cuò)誤:
1. xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH
解決辦法

  • opened Xcode.
  • Preferences
  • Locations
  • Selected the Command Lin Tools: (選擇xcode版本)

2.[update]Xcode7.1 support is out Download via alcatraz.io
解決辦法

  • close Xcode
  • Remove previous defaults for Xcode 7.0
    defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.0
  • Uninstall Alcatraz
    rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin
  • Remove all packages installed via Alcatraz
    rm -rf ~/Library/Application\ Support/Alcatraz/
  • Update the DVTPlugInCompatibilityUUID to the 7.1 in the plists of plugins:
    find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add defaults read /Applications/Xcode\ 7.1.app/Contents/Info DVTPlugInCompatibilityUUID
  • Reset Xcode select
    sudo xcode-select --reset
  • Open Xcode
  • Install Alcatraz
    curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
  • Restart Xcode
  • Select "Load Bundles" in dialog box at Xcode start.

最后給出一張成功的圖


success
最后編輯于
?著作權(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)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

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

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