title: How to reduce ipa size Xamarin.ios
body: <p>I am trying to reduce my ipa size, but cant succeed. I tried with linking SDK assemblies only but when the app is archived it shows 189 MB of the app store and 75mb for ipa. I tried different options but it never worked. </p>
  
  <p>Then I looked into my bin folder and I found out that Xamarin.swift4 is taking about 80 MB of the size, When I removed that package my ipda was reduced to 34mb and playstore size was reduced to 89 MB, but because of this my app crashed instantly after opening. So it means that I can not remove Xamarin.swift 4 libraries.</p>
  
  <p>I have attached my bin folder pic and packages.congifg file, let me know if there is any solution</p>
  
  <p><a href="https://i.stack.imgur.com/L9hog.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L9hog.png" alt="enter image description here"></a></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;packages&gt;
    &lt;package id="Answers" version="1.4" targetFramework="xamarinios10" /&gt;
    &lt;package id="Crashlytics" version="1.4" targetFramework="xamarinios10" /&gt;
    &lt;package id="dannycabrera.GetiOSModel" version="1.4.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Fabric" version="1.4" targetFramework="xamarinios10" /&gt;
    &lt;package id="iOSCharts" version="3.1.1.2" targetFramework="xamarinios10" /&gt;
    &lt;package id="Microsoft.CSharp" version="4.4.1" targetFramework="xamarinios10" /&gt;
    &lt;package id="Microsoft.NETCore.Platforms" version="2.0.2" targetFramework="xamarinios10" /&gt;
    &lt;package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="NETStandard.Library" version="2.0.3" targetFramework="xamarinios10" /&gt;
    &lt;package id="Newtonsoft.Json" version="11.0.2" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.AppContext" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Collections" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Collections.Concurrent" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.ComponentModel.TypeConverter" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Console" version="4.3.1" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Globalization" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Globalization.Calendars" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.IO" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.IO.Compression" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.IO.Compression.ZipFile" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.IO.FileSystem" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Linq" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Linq.Expressions" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Net.Http" version="4.3.3" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Net.Primitives" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Net.Sockets" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.ObjectModel" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Reflection" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Reflection.Extensions" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Reflection.Primitives" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime.Extensions" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime.Handles" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime.Numerics" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime.Serialization.Formatters" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Runtime.Serialization.Primitives" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Security.Cryptography.Algorithms" version="4.3.1" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Security.Cryptography.X509Certificates" version="4.3.2" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Text.Encoding" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Threading" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Threading.Tasks" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Threading.Timer" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Xml.ReaderWriter" version="4.3.1" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Xml.XDocument" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="System.Xml.XmlDocument" version="4.3.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="UITextFieldShaker" version="2017.10.19" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xam.Plugin.Connectivity" version="3.1.1" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Forms" version="3.0.0.446417" targetFramework="xamarinios10" /&gt;
    &lt;package id="ZXing.Net.Mobile" version="2.3.2" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4" version="4.0.0.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.Core" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.CoreAudio" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.CoreData" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.CoreFoundation" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.CoreGraphics" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.CoreImage" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.CoreMedia" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.Darwin" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.Dispatch" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.Foundation" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.Metal" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.ObjectiveC" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.OS" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.QuartzCore" version="4.1.0" targetFramework="xamarinios10" /&gt;
    &lt;package id="Xamarin.Swift4.UIKit" version="4.1.0" targetFramework="xamarinios10" /&gt;
  &lt;/packages&gt;
  </code></pre>