I'm working on Xamarin.Forms project but my Xamarin.iOS project is including some assemblies which I'm not using anywhere. I wanted to exclude those library from my project and not to be included in my IPA. Linker is set to "Don't Link" and I cant use "SDK Assembly only" as application stops working. I tried using "--linkskip=assemblyname" in mtouch configuration but, I guess its opposite to what i want. I want all the assemblies to be included in my build but want to exclude specific assembly.
Asked
Active
Viewed 390 times
0

Federico Navarrete
- 3,069
- 5
- 41
- 76

Mayank Shrivastava
- 362
- 4
- 24
-
1I suggest you figure out why linking is not working with your app instead. – Cheesebaron Apr 02 '19 at 12:06
-
Thanks @Cheesebaron for quick reply. I'm continuously working on it, along with it I thought of give a try to this approach. If is there any way to include specific assembly in linker process during build process, I would be able to proceed. – Mayank Shrivastava Apr 02 '19 at 12:11
-
If reducing app size is the end goal you can look here but I do not think you can do what you are trying to do: https://medium.com/@hakimgulamali88/reducing-the-app-size-in-xamarin-deep-dive-7ddc9cb12688 – FreakyAli Apr 02 '19 at 12:56
-
In Visual Studio look at Solution Explorer Reference Tab to see what libraries are being included. You can delete libraries that aren't being used. – jdweng Apr 02 '19 at 13:05
-
Hi @jdweng I tried that approach also but, the assembly which I want to delete is in Xamarin.iOS.dll which I cant delete from Visual Studio Solution Explorer Reference Tab. – Mayank Shrivastava Apr 02 '19 at 14:14
-
tTen it is needed. – jdweng Apr 02 '19 at 14:23
-
Sorry I didn't get you. tTen? – Mayank Shrivastava Apr 02 '19 at 14:30