C # library on iOS

BRIGHT WARNING: I am new to iOS and this may be a major issue.

I run a desktop PC application that has a fairly complete library written in C #. I want some of the library features to be available for the new iOS project that I am undertaking. So - what are some of the architectural possibilities for using my existing C # library with an iOS project?

I developed the development of droids, and the answer was created to create some web services that use my C # library, and then the droid consumes these services. I assume that the same approach will work with iOS (right ???), but I wonder if there are other options there?

+6
source share
1 answer

It depends on what you want to do:

  • If you β€œconsume” the library through SOA with your library on the server, then it should work fine and iOS will never know about the library (or care)
  • if, however, you want to use the C # library on your iOS device, you have to use tools such as MonoTouch, simply: iOS will not run .NET-dll without goo support, so tools like MonoTouch add (in particular cross -compilation / AOT and other runtimes)
  • or you can manually port your code to Xcode
+10
source

Source: https://habr.com/ru/post/899912/


All Articles