#Windows Azure Active Directory Binding Example for Objective-C for Xamarin
This sample shows how to build a Xamarin binding to our native ADAL for iOS library. This is a sample and is not to be used in production. For those interested in binding to our iOS library in .Net using Xamarin, this code is a good guide and will build a bindling.dll file for your Xamarin for iOS project for use with Xamarin.
###Step 0: Learn about binding objective-c libraries with Xamarin
-
You'll get up to speed faster if you do some reading of the Xamarin documentation for iOS Binding to native libraries located here: Binding Objective-C Libraries
-
Finally, you may want to read through how Xamarin works with Objective-C here: Xamarin for Objective-C Developers
You can get Xamarin Studio from the Xamarin website.
Select File -> New -> Solution and select "iOS Binding Project"
Go to the directory where you created your new project and clone the files in this repostiory. You will then need to add these files in to Xamarin Studio by clicking on your project tree and selecting "Add Files.." in the pulldown.
The names of the files in this repository should match closely the default files that are included in the iOS Binding project for Xamarin. This will aid you in replacing the files or code with the correct files from our repository.
You will need to bind to libADALiOS.a in your Xamarin Studio iOS Binding project as discissed in Binding Objective-C Libraries. The easiest way to do this is to grab the latest ADAL for iOS and compile the source.
You can get the latest ADAL for iOS library here: https://github.com/MSOpenTech/azure-activedirectory-library-for-ios
Run the project and then pull the .dll files out of the /bin directory Xamarin Studio will create.