- Home /
Unity plugin setting issue: DllNotFoundException
Hi,
I felt embarrassed to ask this question. But after trying 1 week googling and try/error, I also found that there is no one encounter this issue. So, I hope to collect some thoughts about why it happen and how to solve this.
I am trying to rebuild plugin on MacOSX only. For some reasons, the 2 basic Unity plugin samples (SimplestPluginExample, RenderingPluginExample45) doesn't work after building on Xcode. The runtime error message is all about "DllNotFoundException". Without mentioning, it also fail for the new functions I created following exact same syntax on both head, C++ (Xcode) and C# (Unity).
Here is what I did before building sample:
Change "Architecture" to Universal(32/64bit) in Xcode Build Setting.
Change "BaseSDK" to Lastest OSX
(Only for RenderingPluginExample45) Add #include in c++
Build project, and copy/replace the .bundle file to the Unity Asset/Plugins folder
I am runing Unity 4.6.1, Xcode 6.1.1, MacOSX 10.10.1
Can anyone show me how you create a plugin from scratch, or add new function in this sample project? http://docs.unity3d.com/Manual/PluginsForDesktop.html
Thanks a lot.
Your answer

Follow this Question
Related Questions
Why does my 32-bit dll plugin(c++) work in Unity 4 and not in Unity 5 indy (Windows 32-bit editor) 0 Answers
DLLNotFoundException, trying to build bundle from .a library on OSX 1 Answer
DllNotFoundException with plugin in OS X 10.8 0 Answers
FileNotFoundException: Could not load file or assembly 0 Answers
Using the MPFR number library on Android 0 Answers