Is it possible to create a cross-platform shared library with MonoDroid and MonoTouch that can be used by non-Mono developers?

前端 未结 2 1756
臣服心动
臣服心动 2021-02-15 15:37

We have a proprietary piece of hardware which we are looking to release as a phone peripheral.

We have started writing a cross-platform mobile app that interfaces with t

相关标签:
2条回答
  • 2021-02-15 15:59

    The answer is no for both cases, it is not possible to create managed libraries that non-managed apps can use, neither on MonoTouch nor or Mono for Android.

    This is because the managed libraries depend heavily on the managed runtime, they're not standalone libraries.

    0 讨论(0)
  • 2021-02-15 16:18

    I have the exact same question as you actually ... On iOS, from what I was able to gather from Xamarin, it's possible but not supported.Though, I am still waiting for an example :/

    From what I understood, monodevelop is able to compile a native ARM library that can be used by an objectiveC source by doing something like that :

    /Developer/MonoTouch/usr/bin/mtouch --linksdkonly --xcode=output_dir MyAssembly.exe

    In your XCode project,it seems that you need to use the Mono-Embedding-API.

    http://docs.go-mono.com/?link=root:/embed

    It would be nice if xamarin could provide a source example because it's a highly needed feature for a toolkit like this!

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