- Home /
Using dynamic libraries as plugins on ios? (framework, dylib)
Is it possible to use plugins that are linked dynamically on iOS? e.g. framework or dylib files. So far the unity editor seems to accept .framework just fine and also use them for linking in the iOS XCode project but it won't copy them into the .app folder. I also tried copying it manually without success.
Calling anything like
[DllImport("myplugin")]
public extern static int AddInteger(int a, int b);
will fail with the error message :"Unable to load DLL 'myplugin': The specified module could not be found."
The Unity documentation doesn't seem to have any information about this. My test plugin works just fine as static library in Unity, or as framework via a native iOS application. It just doesn't work in Unity :/ I have a huge library which isn't designed for static linking and being able to include it as dynamic library would save me days or weeks :/
Edit: I am using IL2CPP
Your answer
Follow this Question
Related Questions
IL2CPP - RPC doesn't work 1 Answer
Is Pro really required for plugins on iOS? 1 Answer
IL2CPP problem on AddRange(List<>)? 0 Answers
2 opencv framework in 1 project 0 Answers
.net socket disconnection exception 0 Answers