I was able to download .dylib from a consumer application by doing the following:
- Add
.dylib to your project as Content - add
RequiredFrameworkAttribute :
[assembly: MonoMac.RequiredFramework("mylib.dylib")]
- register the assembly from the
AppDelegate constructor:
public partial class AppDelegate : NSApplicationDelegate { public AppDelegate () { Type t = typeof(ATypeFromTheAssembly); MonoMac.ObjCRuntime.Runtime.RegisterAssembly (t.Assembly); } }
This still doesn't embed .dylib in the binding assembly, but it is consistent with progress
Stephane delcroix
source share