I have an app that is nearly ready for release which we have coded in Xamarin.iOS and although it is working really well functionally, the app is having memory leaks left right and centre. This is no doubt a common issue for most developers of Xamarin.iOS as I have read many accounts that say memory management on this platform is not exactly what it may seem to be. Even though I have been disposing views, correctly asking the GC to collect and using dispose methods where I can, it still is leaking memory everywhere with no logical or obvious explanation as to why.
I have come across methods that can support with memory deposition such as this one - Xamarin iOS memory leaks everywhere but I am finding it difficult to identify and be clear on what exactly is leaking memory.
The app is very simple with not many images or text, just almost static informational pages throughout with simple functionality, yet still it is leaking. I am not able to use the Xamarin Profiler to find out what exactly is leaking as I do not have an Enterprise subscription for this and I also find profiling with Instruments to be cumbersome and not very helpful as all it identifies are memory leaks but not exactly what data is leaking or in what method or part of the code.
I would like to know more from the community of what other people use for profiling an Xamarin iOS app and also the bottom line answer - is Garbage Collection working in Xamarin and if there is anything special I must do to get it working, what would that be?
Thank you everyone.