Xcode uses huge Ram memory (90gb) - xcode

Has someone noticed the same problem?
Currently installed version are macOS Catalina 10.15.1, Xcode Version 11.2 beta (11B41) .
While opening project - sometimes indexing takes to long, simulator does not launch, and all system slows down.
In activity monitor process swift appears and very fast - during couple of minutes it shows 73-90gb memory use, after which i have to restart, computer stops responding.
I am having trouble with working in Xcode, any help is much appreciated.

Related

Xcode freezes on "fetching app store configuration"

I have mac os mojave and xcode Version 10.1 (10B61). I try build unity3D game. I can successfully build it to iphone 5S device. But when I try submit up to App Store it is not working.
What exactly happens:
On step "fetching app store configuration" xcode freezes. In active monitor I see it as unresponsible application (or something like it). And XCode take almost all free RAM (4.5GB). After sometime (around 20 minutes) mac restart (I have problem with iMac, it restart when use too much RAM, I don't think it related to xcode)
Actually, if I wait long enough (more then 15 minutes) it is start working.
XCode require a lot of RAM + SWAP
Here's an answer for someone who stumbles upon this later, I just want to share what helped me. I also ran into the same problem while trying to distribute a Unity-built game with Xcode (also contains pods).
I work on a MacBook Air 2013 with only 4GB of RAM, so whenever I do anything with Xcode, I first close everything other than Xcode, Finder and Activity Monitor. As soon as I start whatever it is that usually freezes Xcode, I switch to Activity Monitor and track what's happening with the memory.
In the case of freezing while "Fetching App Store Configuration...", the problem appeared to be RAM, more precisely SWAP. I did not have enough memory available on my hard drive, which Xcode tried to use for SWAP and just... well, failed. So I cleaned up my hard drive and finally it went through very smoothly, but it occupied about 9GB of RAM at its peak (5.4GB in SWAP).
So just try to have enough memory available to feed the beast, observe what's happening in Activity Monitor and you should be good.

Xcode 8.2.1 Performance issue with Macbook pro

I have a MacBook pro(mid-2012)with following configuration(8GB RAM, MacOS Sierra, and 512 GB HDD). I updated my Xcode version from 8.2 to 8.2.1. After updating to that version system not responding properly (till 8.2 it works properly), I have to wait 5 or more minutes for one click. So please help me on that to fix that issue. For that performance issue,
Note: I reinstall MacOS twice but getting the same performance issue again and again when I open Xcode before that it works properly.
Steps to Reproduce:
Open Xcode with any existing project and open simulator from Xcode developer tools then you will see that system is not responding properly.
Expected Results:
If it will work till 8.2 then it will also work in Xcode 8.2.1 in MacBook pro
Following is my system configuration and activity monitor results.
CPU Usage
enter image description here
2: https://i.stack.imgur.com/0lEj3.png system configurtion
4: https://i.stack.imgur.com/WdoZW.png before xcode start
after xcode and simulator both starts cpu usage in activity monitor
CPU usage when both are running.
Check your "Activity Monitor" Mac App, monitor which tasks are taking more memory (%CPU). Try to force quit unused apps / tasks. And try again.
Finder -> Applications -> Activity Monitor
I have a macbook pro(middle-2012) in my home, and I can not use it to write the code any more, because it is too slow, I promise, if you replace a newer macbook pro, I think the issue will not comes.
In my company, I use the company's Macbook pro(2015) or Mac Mini(2014 late), with Xcode 8.2.1.
These there will not get slow, improve the configuration of your hardware.

Xcode Too Slow to Work

I've been searching this question for quite a while but still none of the solutions work, this time I got the error message, Xcode playgrounds don't work and if I make a regular iOS app project and run it in the simulator it will have the loading screen for around 15 minutes and then gives the error message: The operation couldn't be completed. (Match error -308 - (IPC/might) server died)
I've recently tried using my iPhone to run projects which works. Is there and way to make Xcode work normally.
I am using a Mid-2012 MacBook Pro Non-Retina with 4GB RAM.
I had similar errors (if overly slow apps are an error). Your problem is that one process awaits another and has an expire timeout. The other process takes a large time to load.
you might be able to solve this by adding a substantial amount of ram and moving the simulators to a RAM disk, alternately you might upgrade to an ssd.
realistically your best bet is buying new retina MacBook Pro. Thats how I solved it...

Xcode 7 slow and sluggish

Since upgrading to xcode 7 and greater, the performance of xcode is terrible. When I click on a class or scroll the code pane it sometimes takes up to 30 seconds before reacting and often I need to force quit xcode and restart.
I have turned off source control and I am not using swift.
I have a new macbook pro with 8gb memory and an SSD. my computer is fast and has no other performance issues.
-UPDATE-
I have cleared derived data and am not using any unusual plugins
Does anyone know what may be the problem? I imagine some build setting is causing this but im not sure which.
The issue is totally with xcode 7.
try to commit/save every time you make some changes, it will increase some performance

Xcode freezes at indexing, randomly, iPhone dev

My Xcode version is 4.6.2, which is the latest at this moment 2013.6.2, when I try to run a project(not a specified one) in simulator, it randomly freezes(stops) at indexing. I don't know if it's my macbook's problem because it's relatively a old one. My project is very light-weighted, just some demo. I'm a newbie. Normally, it works well, but sometimes it freezes at indexing, say 5% possibility.
And I cannot stop it even I clicked the "Stop" button at the right of "Run", and either if I close the simulator. I have to force the computer to shut down by keep pressing the power button. It brings damage to computer.
Anyone knows how to fix this? Or I have to get a newer one? Any help will be appreciated. THANKS.
Screenshot:
Xcode 4.6.2 in 1.4GHz, 2GB Ram
This is the main problem, the Xcode needs 2GB+ itself, and there are others applications and processes running in foreground and background.
I have 3GHz C2D, 4GB RAM, still at times it hangs at times :(
So, either you need to upgrade the hardware or degrade the Xcode version.
EDIT:
As you have Macbook air, you cant upgrade the RAM which is soldered to the motherboard.

Resources