iOS开发常用命令行①

  1. 批量删除.svn文件 ..先定位到项目目录下(在终端先输入cd 然后把文件夹拖进终端)

    find . -type d -name ".svn"|xargs rm -rf
    
  2. 安装Alcatraz

    curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
    
  3. 使Xcode重新出现load bundle提示框(用于不小心点击了skip bundle的情况)

    defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-X.XX
    

    末尾X.XX为版本号

  4. 更新Xcode后重新加载以前安装的插件

    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.app/Contents/Info.plist DVTPlugInCompatibilityUUID`
    
  5. 安装homebrew

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

你可能感兴趣的:(ios,xcode)