xamarin.ios - Integrating C/C++ code in Xamarin for iOS -


under visual studio 2015, have integrated android c++ code xamarin , works expected. now, trying same ios , running basic issues.

i assuming integration mechanism same ios of android in sense shared library (probably .so) created 1 can load using dllimport in c# code.

when try add new c++ project ios solution, option seems make sense visual c++-->cross platform-->ios-->shared library. added project type mytestshared. ends creating 3 projects - mytestshared.shared, mytestshared.ios, , mytestshared.android. project mytestshared.ios has external method defined char* iosinfo(). however, when try add project mytestshared.ios reference mymainapp.ios project, see error "a reference mytestshared.ios not added. assembly must have dll or exe extension."

questions:

  1. for android c++, generates 1 project. why create 3 projects ios c++?

  2. how add reference mytestshared.ios? missing?

  3. i see there option create static c++ library ios. can reference somehow in c# code?

regards.


Comments