Unknown type name ‘UnityRenderingSurface’ PostToServicesUtil.mm in Xcode

Hello guys,

I am using Unity 4.6.4f1, Xcode Version 6.3 (6D570), iPhone, iPad 8.3 OS version.

When I try to run the game through Xcode the following error appears:

Semantic Issue

Unknown type name ‘UnityRenderingSurface’
PostToServicesUtil.mm

Does anyone has encounter this problem and if so does anyone knows a way to fix it?

Regards,
Carlos

Unknown type name ‘UnityRenderingSurface’
PostToServicesUtil.mm
that was renamed to be
UnityDisplaySurfaceBase (base struct) and UnityDisplaySurfaceGLES, UnityDisplaySurfaceMTL for gles/metal respectively. Just change the plugin code

Hello Alexey,

Thank you for your respond. So I just have to replace “UnityRenderingSurface” with "UnityDisplaySurfaceBase, replace “gles” with “UnityDisplaySurfaceGLES”, and “metal” with “UnityDisplaySurfaceMTL” in the plugin script?

Regards,
Carlos

So I just have to replace “UnityRenderingSurface” with "UnityDisplaySurfaceBase
try this first, yes
replace “gles” with “UnityDisplaySurfaceGLES”, and “metal” with “UnityDisplaySurfaceMTL” in the plugin script?
no, gles metal were used as api names, not strings to replace

Hello Alexey,

Ah ok. Thank you very much.

Regards,
Carlos