title: Binding a iOS native library into a Xamarin project
body: <p>I want to bind a native Obj C library into my Xamarin project.
  I tried follow this documentation : </p>
  
  <blockquote>
    <p><a href="https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/walkthrough/#Creating_A_Static_Library" rel="nofollow noreferrer">https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/walkthrough/#Creating_A_Static_Library</a></p>
  </blockquote>
  
  <p>So I created my .a fat library.</p>
  
  <p>Now I want to bind the ApiDefinition with Objective Sharpie using this:</p>
  
  <blockquote>
    <p>sharpie bind
    -scope=Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Foundation.framework/Headers
    -sdk=iphoneos11.2 /Users/xamarinprojects/Documents/CheckoutKit/CheckoutKit/*.h
    -output=/Users/xamarinprojects/Documents/CheckoutKit/Files -namespace=    CheckoutKit</p>
  </blockquote>
  
  <p>The problem is that I got an ApiDefinition file with 50k lines.
  In my library, I use Foundation, so I think Objective Sharpie binds all the headers Foundation files. I dont want that.</p>
  
  <p>So I tried to use the sharpie bind -scope to remove file ? (is right ?) but it doesn't work. I still have a 50k lines in my ApiDefinition.</p>
  
  <p>How can I resolve it ?</p>
  
  <p>Thanks for helping</p>