Skip to content

Instantly share code, notes, and snippets.

@sarthakpranesh
Last active March 30, 2024 22:29
Show Gist options
  • Star 26 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save sarthakpranesh/c4ba43a2f8e75518acedb9480087a3ee to your computer and use it in GitHub Desktop.
Save sarthakpranesh/c4ba43a2f8e75518acedb9480087a3ee to your computer and use it in GitHub Desktop.
Debloat Mac OS ( use at your own risk )
# I use MacOS VMs from github for iOS development.
# By no suprise they are a bit slow and have a lot of things I don't use
# Hence this script for lighter and better VM for my iOS development and builds
# GUI and animation related things to tweak
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock launchanim -bool false
sudo sysctl debug.lowpri_throttle_enabled=0
# There are in general many services used by Apple
# So if you find any other useless service that can be removed please leave a comment
# use the following to see all services in play: `launchctl list`
# Some general services that I don't use
sudo launchctl remove com.apple.CallHistoryPluginHelper
sudo launchctl remove com.apple.AddressBook.abd
sudo launchctl remove com.apple.ap.adprivacyd
sudo launchctl remove com.apple.ReportPanic
sudo launchctl remove com.apple.ReportCrash
sudo launchctl remove com.apple.ReportCrash.Self
sudo launchctl remove com.apple.DiagnosticReportCleanup.plist
sudo launchctl remove com.apple.ap.adprivacyd
sudo launchctl remove com.apple.siriknowledged
sudo launchctl remove com.apple.helpd
sudo launchctl remove com.apple.mobiledeviceupdater
sudo launchctl remove com.apple.screensharing.MessagesAgent
sudo launchctl remove com.apple.TrustEvaluationAgent
sudo launchctl remove com.apple.iTunesHelper.launcher
sudo launchctl remove com.apple.softwareupdate_notify_agent
sudo launchctl remove com.apple.appstoreagent
sudo launchctl remove com.apple.familycircled
# I don't use Safari so...
sudo launchctl remove com.apple.SafariCloudHistoryPushAgent
sudo launchctl remove com.apple.Safari.SafeBrowsing.Service
sudo launchctl remove com.apple.SafariNotificationAgent
sudo launchctl remove com.apple.SafariPlugInUpdateNotifier
sudo launchctl remove com.apple.SafariHistoryServiceAgent
sudo launchctl remove com.apple.SafariLaunchAgent
sudo launchctl remove com.apple.SafariPlugInUpdateNotifier
sudo launchctl remove com.apple.safaridavclient
@cryo-kronos
Copy link

Thanks for this. I've been seeing daily SafariPlugInUpdateNotifier crashes on my Mojave system. Started a couple months ago and nothing I've done has stopped it. Running "sudo launchctl remove com.apple.SafariPlugInUpdateNotifier" fixed the issue.

Is there a reason why "sudo launchctl remove com.apple.SafariPlugInUpdateNotifier" is run twice in this script?

@IgneousRed
Copy link

Also why is "sudo launchctl remove com.apple.ap.adprivacyd" run twice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment