用過Sublime text的都知道Package control遣鼓。其實xcode的也有同樣的神器alcatraz
網(wǎng)上已經(jīng)有很多的alcatraz安裝方法浸遗⊙⑵幔基本都是一樣的,alcatraz的安裝方法
這里介紹下安裝過程中出現(xiàn)的錯誤及解決辦法。
在運行該語句curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
會出現(xiàn)各種各樣的錯誤:
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.
最后給出一張成功的圖