Real-World Example using an Xcode Project

PDF for offline use

Let us know how you feel about this

Translation Quality


last updated: 2016-01

This example uses the POP library from Facebook.

New in version 3.0, Objective Sharpie supports Xcode projects as input. These projects specify the correct header files and compiler flags necessary to compile the native library, and thus necessary to bind it too. Objective Sharpie will select the first target and its default configuration of a project if not instructed to do otherwise.

Before Objective Sharpie attempts to parse the project and header files, it must build it. Projects often have build phases that will correctly structure header files for external consumption and integration, so it is best to always build the full project before attempting to bind it.

$ git clone
Cloning into 'pop'...
   (more git clone output)

$ cd pop
$ sharpie bind pop.xcodeproj -sdk iphoneos9.0

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.