Duplicate Native Method

I’m attempting to make a nice multi-platform solution for support fmod designer in Unity3d. I heard this is on the roadmap at the moment, but it’s becoming critical for our project so we can’t wait for Unity to natively support this.

When I try to build using the iOS “__Internal” namespace I get conflicts due to Duplicate Native Methods, presumably due to Unity’s use of fmod already.

Does anyone know of a simple solution? I know that xcode will happily allow developers to ignore such conflicts so I know this issue is somehow resolvable, I’m just not sure how to approach it in Unity. Quite possibly this would be solvable through the “AOT Compilation Options” but I cannot find these options documented anywhere.

Have you seen this: http://forum.unity3d.com/threads/129530-duplicate-symbol-in-static-libraries-(damn-I-hate-that...)?

I think the problem is that you have used same name for two method (function) which is in your .MM file and that is treated as plugin.