Forum Xamarin.Forms

How to fix xamarin iOS linker from removing the code to prevent app crash?

I've created a Xamarin.Forms PCL project. I've enabled the Linker to link sdk assemblies only. The loads faster, works faster and smaller in size but in few areas it crashes. I'm not able to find out the bug because it works fine when the linker is disabled. I've included few lines in a file LinkerPleaseInclude as suggested by someone.

var x = new System.ComponentModel.ReferenceConverter(typeof(void));

After including this line, the app don't crash in few areas but the data don't show like dynamic data template of a listview. Do I need to include something else in the file LinkerPleaseInclude? How can I prevent the linker from not removing the code while linker enabled?

Sign In or Register to comment.