CorePlot MonoMac bindings crashing

后端 未结 1 456
伪装坚强ぢ
伪装坚强ぢ 2021-01-24 00:41

I am trying to use the CorePlot 0.9 binding for monomac, but that seems to be a hard task. The monotouch sample builds and runs without any problems, but I don\'t need that one.

相关标签:
1条回答
  • 2021-01-24 01:18

    Ok, that was hard. After several days of fighting xcode and monomac, it turned out, that the native CorePlot framework (dynamic lib) was not loaded. I was not aware, that I was supposed to load it myself (I am a monomac newbie, sorry...but isn't it rather ugly it fails silently in that way??)

    Two ways to do this: either

    Dlfcn.dlopen ("CorePlot.framework/CorePlot", 2); // 2 = load now, 0 = lazy load
    

    or [assembly:MonoMac.RequiredFramework("CorePlot.framework/CorePlot")]

    0 讨论(0)
提交回复
热议问题