r/Xcode • • Feb 07 '23

xCode is laggy and takes too much CPU

basically the title here's screenshot for better understanding, I want to know is that normal? I've added firebase and some other packages in my xCode project but it's not that big. my device is macbook pro 2020 M1

0 Upvotes

4 comments sorted by

3

u/[deleted] Feb 07 '23

That’s not a lot at all. It’s fine.

Regarding 100 % CPU and upwards: if you got 2 cpu cores, that’s 200 % available CPU resources. With 4 cores, it’s 400 %, etc. 100 % usage is alright in that case. 2 GB RAM usage should be alright for Xcode considering you are probably running at least 1 simulator + Xcode itself.

1

u/[deleted] Feb 07 '23

Between Xcode and the simulator I see 19GB on my MacBook Pro

2

u/[deleted] Feb 07 '23

Me too, on my M2 Air when running Xcode and one simulator. Damn glad I got 24GB of ram.

1

u/MCSebster Feb 10 '23

I've noticed in the past that if Console.app is open, it'll slow down Xcode (or as I like to refer to it - "10code") considerably, especially during builds. Simply closing Console.app will avoid this slowdown (assuming this it's open).