IOS : extension 'GL_EXT_frag_depth' is not supported
Hi Unity community. I export my project on Mac to deploy on IOS, but i'm facing a terrible issue. The game crashes, after splash screen, and in the log I have this error :
-------- Shader compilation failed
#version 100
#extension GL_EXT_frag_depth : enable
precision highp float;
uniform sampler2D _MainTex;
uniform highp sampler2D _DepthTex;
uniform highp vec4 _Color;
varying highp vec2 xlv_TEXCOORD0;
void main ()
{
lowp vec4 tmpvar_1;
tmpvar_1 = (texture2D (_MainTex, xlv_TEXCOORD0) * _Color);
gl_FragDepthEXT = texture2D (_DepthTex, xlv_TEXCOORD0).x;
gl_FragData[0] = tmpvar_1;
}
-------- failed compiling:
fragment evaluation shader
WARNING: 0:4: extension 'GL_EXT_frag_depth' is not supported
ERROR: 0:14: Use of undeclared identifier 'gl_FragDepthEXT'
Note: Creation of internal variant of shader 'Hidden/BlitCopyWithDepth' failed.
WARNING: Shader Unsupported: 'Hidden/BlitCopyWithDepth' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/BlitCopyWithDepth' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VR/BlitTexArraySlice' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VR/BlitTexArraySlice' - Setting to default shader.
Setting up 1 worker threads for Enlighten.
Thread -> id: 700001b8a000 -> priority: 1
UnloadTime: 1.018084 ms
dyld: lazy symbol binding failed: Symbol not found: _UnityAdsSetReadyCallback
Referenced from: /Users/kosted/Library/Developer/CoreSimulator/Devices/18976395-88FA-4F72-83C2-AF7736AA173D/data/Containers/Bundle/Application/A55D0694-B554-4482-B0CA-E48EF45D134D/studio.app/studio
Expected in: flat namespace
dyld: Symbol not found: _UnityAdsSetReadyCallback
Referenced from: /Users/kosted/Library/Developer/CoreSimulator/Devices/18976395-88FA-4F72-83C2-AF7736AA173D/data/Containers/Bundle/Application/A55D0694-B554-4482-B0CA-E48EF45D134D/studio.app/studio
Expected in: flat namespace
(lldb)
I tried many solution by setting Depth normals into "no support" for example, but still have the same issue. How could I resolve it please ?
Answer by kosted · Jan 19, 2018 at 12:09 AM
I desactivate Unity ads and download the package from the asset store.
Answer by lexi89puzzle · Jun 28, 2018 at 02:25 PM
@kosted Did you resolve this? Experiencing it here as well :)
@lexi89puzzle yes, It was unity ads who was the origin of the issue. You as I said I deactivate Unity ads and download the package from the asset store.
Answer by mapbox · Jun 28, 2018 at 03:35 PM
@lexi89puzzle Try using Metal from Autographics API setting under build settings. Remove OpenGL form the list