title: Issues Linking ObjC Library using Xamarin
body: <p>I've been working on binding my first ObjC library (<a href="https://github.com/SVGKit/SVGKit/" rel="nofollow">SVGKit</a>) for the past few days. I've got it all building and compiling but I'm unable to get it running when referenced by another project.</p>
  
  <p>My code for the binding can be found here: <a href="https://github.com/jamesmundy/SVGKit.Xamarin" rel="nofollow">https://github.com/jamesmundy/SVGKit.Xamarin</a></p>
  
  <p>When run, the following error is displayed:</p>
  
  <blockquote>
    <p>Could not create an native instance of the type
    'SVGKitBindings.SVGKImageView': the native class hasn't been loaded.
    It is possible to ignore this condition by setting
    ObjCRuntime.Class.ThrowOnInitFailure to false.</p>
  </blockquote>
  
  <p>I've checked the static library I'm using and it supports the following platforms:</p>
  
  <blockquote>
    <p>Architectures in the fat file: libSVGKit-iOS.1.2.0.a are: armv7 i386
    x86_64 arm64</p>
  </blockquote>
  
  <p>I believe this is all I need.</p>
  
  <p>My linker file is as follows:</p>
  
  <blockquote>
    <p>[assembly: LinkWith ("libSVGKit-iOS.1.2.0.a", LinkTarget.ArmV7 |
    LinkTarget.Simulator, SmartLink = true, ForceLoad = true)]</p>
  </blockquote>
  
  <p><strong>Do I have to configure the project that I'm using this binding in differently? Any help getting the native library to load is much appreciated.</strong></p>
  
  <p><strong>Update 1:</strong> Thanks to a suggestion I tried editing the Linker file to support the same platforms as the static library, unfortunately it didn't solve the problem. The file is now as follows:</p>
  
  <blockquote>
    <p>[assembly: LinkWith ("libSVGKit-iOS.1.2.0.a", LinkTarget.ArmV7 |
    LinkTarget.Simulator | LinkTarget.Arm64 | LinkTarget.Simulator64,
    SmartLink = true, ForceLoad = true)]</p>
  </blockquote>
  
  <p>I also tried the code on all the emulators, but still had no luck unfortunately.</p>