Bundle doesn't seem to be working, Mac Plugin

Hi,

I’ve been experimenting with plugins and trying to work out how to use them on a mac. I’ve managed to get it to work on iOS and Android so far but now coming to the Mac, I am struggling.

I’ve built a bundle with the code used for the iOs version and attached it to the scene but I keep getting a couple of errors. If I build a 32 bit version of the bundle I get an EntryPointNotFoundExcepion, whenever a method I want to use is attempting to be called. If i build a 64 bit version of the bundle I get a dllNotFoundException. I’m imagining the 32 bit version seems to at least be finding the bundle so I’ve stuck with that but I’m wondering why my functions can’t be found. The code is below:

C#

	[DllImport ("TestBundle")]
	private static extern void _OnButtonPress (string test);

.mm file

extern "C"
{

    void _OnButtonPress(const char* testString)
    {
         // Body needs implementing  
    }
}

I haven’t created any sort of declaration in a header file. If anybody has any ideas or can share how they managed it, that would be great.

Cheers,

Hii bro…!!! i am also having the same problem please help me if you found the solution

Have you found any solution to this?