跳至主要内容

博文

目前显示的是 十一月, 2021的博文

Xcode 13 卡顿问题解决方案

 原文链接 As I haven't found a way to edit my first answer above:  I have found a solution to fix the SwiftUI Preview simulators Find all  com.apple.suggestions.plist  files in  ~/Library/Developer/Xcode/UserData/Previews/Simulator Devices/ Set the key  SuggestionsAppLibraryEnabled  to  NO The following script does the job nicely: cd ~/Library/Developer/Xcode/UserData/Previews/Simulator\ Devices/ find . -name com.apple.suggestions.plist - exec plutil -replace SuggestionsAppLibraryEnabled -bool NO {} ";"       This approach  also works for regular Simulator instances . Instead of opening "Settings" and disabling "Suggestions on Home Screen", you can use below script to do the job: cd ~/Library/Developer/CoreSimulator/Devices  find . -name com.apple.suggestions.plist - exec plutil -replace SuggestionsAppLibraryEnabled -bool NO {} ";"