Created
November 16, 2015 14:48
-
-
Save neonichu/d1d993739e352d726779 to your computer and use it in GitHub Desktop.
Automatically hide all schemes from the Pods project for the current user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'CFPropertyList' | |
| user = ENV['USER'] | |
| path = "Pods/Pods.xcodeproj/xcuserdata/#{user}.xcuserdatad/xcschemes/xcschememanagement.plist" | |
| plist = CFPropertyList::List.new(:file => path) | |
| userState = plist.value.value['SchemeUserState'].value | |
| userState.keys.each do |key| | |
| value = userState[key].value | |
| value['isShown'] = CFPropertyList::CFBoolean.new(false) | |
| end | |
| plist.save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment