Basically I'm trying to get the desktop rendering plugin to work ( http://docs.unity3d.com/Documentation/Manual/NativePluginInterface.html ).
Here is what I did:
- Downloaded the example project ( http://docs.unity3d.com/Documentation/Images/manual/RenderingPluginExample42.zip ). The bundle is already compiled and is located in the Assets/Plugins folder. This works fine when running Unity.
- Opened the XCode project in XCode 5.
- In the file "RenderingPlugin.cpp" change
#include <OpenGL/OpenGL.h>to#include <OpenGL/gl.h> - Update XCode project settings:

- Build the new bundle in XCode and copy the new bundle to the Assets/Plugins (replace existing bundle).
- Restart Unity and try to run the demo again. Now Unity gives the following error: DllNotFoundException: /Users/mono/Downloads/RenderingPluginExample42-1/UnityProject/Assets/Plugins/RenderingPlugin.bundle/Contents/MacOS/RenderingPlugin
Some observations: The new bundle file (17kb) is much smaller than the old bundle file (29kb).