Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meftunca/ceceed6317a4b263d632339e6eb7463c to your computer and use it in GitHub Desktop.
Save meftunca/ceceed6317a4b263d632339e6eb7463c to your computer and use it in GitHub Desktop.
Fix the iOS 15 Simulator high CPU usage due to the Spotlight/Suggestions Engine
#!/bin/env sh
disable_suggestions() {
if [ -d "$1" ]; then
pushd "$1" || return
find . -name com.apple.suggestions.plist \
-exec echo {} \; \
-exec plutil -replace SuggestionsAppLibraryEnabled -bool NO {} \;
popd || return
fi
}
disable_suggestions "${HOME}/Library/Developer/Xcode/UserData/Previews/Simulator Devices/"
disable_suggestions "${HOME}/Library/Developer/CoreSimulator/Devices/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment