alcatraz

用过Sublime text的都知道Package control。其实xcode的也有同样的神器alcatraz

网上已经有很多的alcatraz安装方法。基本都是一样的,alcatraz的安装方法

这里介绍下安装过程中出现的错误及解决办法
在运行该语句curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh会出现各种各样的错误:
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.

最后给出一张成功的图


alcatraz_第1张图片
success

你可能感兴趣的:(alcatraz)