Skip to content

Commit 7f9967f

Browse files
authored
Update simulator.md
1 parent e73bb2a commit 7f9967f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

simulator.md

+20
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,23 @@ Source: [Roman Shevtsov and Jean-Étienne](https://twitter.com/ryushev/status/13
3131
> You can go to Xcode Simulator `File > Record Screen` to record the simulator, and turn it into a GIF (if you want to) by right clicking on the clip, and `Save as Animated GIF`.
3232
3333
Source: [Ting Becker](https://twitter.com/teekachu1/status/1431314346311815175?s=21)
34+
35+
### iOS 15 Simulator's Spotlight process consistently uses ~100% of CPU
36+
37+
> To fix the SwiftUI Preview simulators:
38+
39+
```bash
40+
cd ~/Library/Developer/Xcode/UserData/Previews/Simulator\ Devices/
41+
42+
find . -name com.apple.suggestions.plist -exec plutil -replace SuggestionsAppLibraryEnabled -bool NO {} ";"
43+
```
44+
45+
> To fix regular Simulator instances:
46+
47+
```bash
48+
cd ~/Library/Developer/CoreSimulator/Devices
49+
50+
find . -name com.apple.suggestions.plist -exec plutil -replace SuggestionsAppLibraryEnabled -bool NO {} ";"
51+
```
52+
53+
Source: [@pi80223 - Apple Dev Forums](https://developer.apple.com/forums/thread/683277?answerId=682047022#682047022)

0 commit comments

Comments
 (0)