4

I have a Xamarin iOS app that runs on both the iOS 12 simulator and iOS 13 simulator. I am using Visual Studio Professional to launch a simulator on a paired Mac. The Mac has iOS 12.0 simulators and iOS 13.3 simulators. When I debug my application on the iOS 12 simulator, I quickly run out of file handles after downloading a bunch of files via HttpClient; whereas on iOS 13 I do not.

Running lsof via a Process.Start indicates that there are around 750 file handles open on debugging start on iOS 12, whereas on the iOS 13 simulator there's only 250 file handles. The file handles that appear on iOS 12 and not 13 are these 'iOS 12.0.simruntime' files as seen below:

enter image description here

I am seeing file handle exhaustion in our release application as well on iOS 12 so I believe the issue is not just debugging related. I'm stumped as to why all these files are open on debugging for iOS 12 but not 13.

Richthofen
  • 2,076
  • 19
  • 39

0 Answers0