Skip to content

Instantly share code, notes, and snippets.

@neonichu
Created November 16, 2015 14:48
Show Gist options
  • Select an option

  • Save neonichu/d1d993739e352d726779 to your computer and use it in GitHub Desktop.

Select an option

Save neonichu/d1d993739e352d726779 to your computer and use it in GitHub Desktop.
Automatically hide all schemes from the Pods project for the current user
#!/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