Skip to content

Instantly share code, notes, and snippets.

View Svette's full-sized avatar

Sergey Vetrogonov Svette

  • Stygvir
  • Helsinki
View GitHub Profile
@Svette
Svette / doctor.rb
Last active April 7, 2016 05:39
iOS "Project Doctor" script, that knows how to treat most of Xcode's random failures 👀
#!/usr/bin/env ruby
require 'pathname'
APP_ROOT_PATH = Pathname.new File.expand_path('../', __FILE__)
POD_ROOT_PATH = Pathname.new File.expand_path("#{APP_ROOT_PATH}/Pods")
POD_LOCK_PATH = Pathname.new File.expand_path("#{APP_ROOT_PATH}/Podfile.lock")
# This script fixes common build hiccups,
# such as corrupt Xcode index or cocoapods being out of sync
Dir.chdir APP_ROOT_PATH do