xamarin.ios - MonoTouch Binding library built using Objective-C static library doesn't call corresponding objective-C method when C# counterpart is called -


i've static library (say mylibrary.a) built objective-c xcode project.

i'm trying re-use in mono touch ios application. following documentation, built ios library project in xamarin studio, added mylibrary.a , linked , exported methods want available using mylibrary.cs shown below. when build project produces mylibrary.dll

[basetype (typeof (nsobject))] interface touchtestdriver {      [static]     [export ("initmylibrary")]     void initmylibrary ();      [static]     [export ("startdoingsomethinginteresting:")]     nsurl startdoingsomethinginteresting (nsurl url); } 

then built ios app (solution) using xamarin studio, , included mylibrary.dll in resources. classes mylibrary.dll visible, this:

using mylibrary;

and in appdelegate.cs finishedlaunching() method, call method

    mylibrarylib.mylibrary.initmylibrary(); 

when app run in simulator, seems work fine, not calling objective-c method initmylibrary(). confirm putting nslog(), , exit(0). app doesn't log not exit.

am missing anything? there documentation usecase (other bindingsample, have followed several times w/o success)


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -