Unable to build for Xamarin iOS

I’ve managed to finally figure this out.

Following the written instructions appears to have been the wrong approach. There was a video on the Xamarin walkthrough page from which I figured out the right way.

To make it work I did the following;

  1. Do not create a Xamarin binding project.
  2. Reference the static (*.a) libraries you need directly in your iOS application
  3. Set the library build actions to BundleResource
  4. You will need to specify your own mtouch arguments. Mine were:

-cxx -gcc_flags “-L${ProjectDir} -framework AudioToolbox -framework CoreAudio -force_load ${ProjectDir}/libfmod_iphoneos.a -force_load ${ProjectDir}/libfmodstudio_iphoneos.a”
The important parts here are that you must also include the framework options because these are seemingly not automagically detected by Mono.

With that done it should be working. Hope someone finds this helpful in the future

2 Likes