Xcode RAM Usage Problem

👋🏻 Hello Apple Developer Community,

I’ve recently got the problem with the current Xcode Beta Version and the Preview Feature. Because when I try to load the Preview, the RAM Usage spikes and it’s nearly at the limit on my MacBook (16GB RAM).

(Note: This is happening while loading up the Preview)

But when I haven’t loaded the Preview Window, the overall RAM Usage of my system is ver low

(Note: This is when Xcode has is not loading the Preview)

(Note: This is after quitting Xcode for cancelling the load of the Preview)

All Pictures are in German, sorry for that ☹️.

What are possible problems or solutions against this problem?

Have a nice day / evening 😁

Hi,

Sorry to hear you are having problems with ram using while using previews. Without more diagnostics it is hard to triage this kind of problem.

The best next step will be to file a feedback with diagnostics so we can take a look at all the details.

Install the logging profile using instructions available here: https://developer.apple.com/bug-reporting/profiles-and-logs/?name=swift on your mac running Xcode.

Then when you reproduce the problem in Xcode:

  1. Open the previews diagnostics window by going under the Editor menu in the menu bar, then the Canvas submenu, then selecting "Diagnostics".
  2. In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  3. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)
  4. Generate a sysdiagnose on your mac and attach that too
Xcode RAM Usage Problem
 
 
Q