Before diving in, please be aware that TestFlight's SDK is compiled with THUMB instructions. This means that you won't know if the SDK will work in your app or not. It may work one day, then the next day it might not. Please read this for more info. Also, read the Code Generation Engine section on Xamarin's docs.
The SDK will only run properly on the device when built using the LLVM compiler. Make sure this is enabled in your project's advanced build settings.
- Download the TestFlight SDK
- git clone this repository (or just download the src archive)
- In terminal, run "make" within the cloned repository
- Copy libTestFlight.a (downloaded from step 1) and monotouch-testflight.dll (generated from "make") to the root of your proj. You can copy them to another relative location but you'll have to modify the gcc_flags specified down below to match the paths.
- Add the monotouch-testflight.dll reference in your MonoTouch project
- In your MonoTouch project options > iPhone Build
-
Set Linker behavior to "Link SDK assemblies only"
-
Set the Extra arguments in all iPhone Build configurations that you want to use the SDK in to:
-nosymbolstrip -nostrip -cxx -gcc_flags "-lgcc_eh -L${ProjectDir} -ltestflight -ObjC"
-