mono / Embeddinator-4000

Tools to turn .NET libraries into native libraries that can be consumed on Android, iOS, Mac, Linux and other platforms.
MIT License
758 stars 95 forks source link

error EM0009: The feature `Returning type Mutex from native code` is not currently supported by the tool #773

Closed ghost closed 4 years ago

ghost commented 4 years ago

Steps to Reproduce

  1. On Macbook Pro I built my Xamarin.ios .net standard class lib project
  2. Fully installed and built github emb4k objcgen
  3. Used objcgen to generate Obj-C from .NET standard class lib with this command line: /PRIMARY/WORK/attempt4_3-24-20b/Embeddinator-4000/objcgen/_build/objcgen "/PRIMARY/WORK/MOBILE_SYS_HUB/SYS HUB VB standard/bin/Debug/netstandard2.0/SYS_HUB_VB_standard.dll" --target=framework --platform=iOS --outdir=output -c --debug

Expected Behavior

Should have generated Obj-c

Actual Behavior

/PRIMARY/WORK/attempt4_3-24-20b/Embeddinator-4000/objcgen/_build/objcgen "/PRIMARY/WORK/MOBILE_SYS_HUB/SYS HUB VB standard/bin/Debug/netstandard2.0/SYS_HUB_VB_standard.dll" --target=framework --platform=iOS --outdir=output -c --debug

. . .

Generating binding code... error EM0009: The feature Returning type Mutex from native code is not currently supported by the tool

Environment

Build Logs

Example Project (If Possible)

ghost commented 4 years ago

Is there something else I can use to replace "mutex"? The lib I'm embedding is multi-threading and needs mutex.

ghost commented 4 years ago

I'm just going to work around using a mutex for now.