Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

junkster

macrumors regular
Original poster
Nov 6, 2006
128
1
I'm looking for someone else to verify this:

1. Open up your iOS project in XCode.
2. Open Activity Monitor, click the Memory tab.
3. Find XCode and note the number in the "ports" column. This may only be available in Mavericks.
4. Run your app in any of the simulators, then quit it.
5. Check the number of ports again in step 3.
6. Repeat a few more times, just to make sure.

For me, the number increases significantly every time I run my app. After several hours of work it has climbed from 300 to 3000.
 
I'm looking for someone else to verify this:

1. Open up your iOS project in XCode.
2. Open Activity Monitor, click the Memory tab.
3. Find XCode and note the number in the "ports" column. This may only be available in Mavericks.
4. Run your app in any of the simulators, then quit it.
5. Check the number of ports again in step 3.
6. Repeat a few more times, just to make sure.

For me, the number increases significantly every time I run my app. After several hours of work it has climbed from 300 to 3000.

Its likely the simulator that's leaking, not Xcode. Over the years since Apple released the iOS SDK I've seen a variety of leaks in the simulator. Try quitting the sim and relaunching it. I bet your port count drops.
 
Its likely the simulator that's leaking, not Xcode. Over the years since Apple released the iOS SDK I've seen a variety of leaks in the simulator. Try quitting the sim and relaunching it. I bet your port count drops.

Good idea, but quitting the sim and relaunching doesn't change the port count in XCode.
 
Either Xcode or the Simulator, if ports are truly being leaked, the only way I see to free them is to reboot the OS. I've recently gotten serious about programming, and found that when I'm tweaking something in one of my projects, and starting / stopping code a lot, things start to get really wonky after a few hours. A sure fire fix is to reboot. Not optimal, but definitely effective.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.