Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

White flag! Binding with a native dylib failure

$
0
0

Dear Xamarin Gods.

I'm wrapping the Parse SDK for use in a Mac utility (written in Xamarin) - and the dylib is not loading.

  • I've built a toy example wrapping Parse, and created a dynamic library project. I set the Architecture to 32bit Intel in Xcode.
  • I downloaded the MonoMac source, and built it so I could use Bmac.exe.
  • I built the binding dll using bmac.exe, and I add the resultant dll as a Reference.
  • I imported the dylib into my Xamarin.mac project and set its "Build Action" to "Content", so it's copied to the Resources directory in the app bundle

So far everything seems to be looking OK.

My dylib is not loading, failing with an exception "Failing to load required framework" PBCParseDynamic.dylib

I'm using the RequiredFramework attribute:

[assembly:MonoMac.RequiredFramework("PBCParseDynamic.dylib")]

I've also tried this but I still get a NULL return.

IntPtr result = Dlfcn.dlopen ("PBCParseDynamic.dylib", 0);

Have I missed something? It's taken me a day and a half to get here and now I'm stuck!

I'd be very grateful for any help and would implore Xamarin to PLEASE update your docs in the this regard - I'm still very new to both Xamarin and OSX and have found this quite painful. A silly toy example is all that is required.

Many thanks Scott


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>