unity ios GL_OES_depth_texture BlitCopyFromTexArray undeclared gl_FragDepthEXT 错误 ARC配置

时间:2021-11-23 03:43:39

刚刚运行起来就报下面错,各种查找,纠结,浪费一天时间记录一下解决方案:

2018-03-28 17:46:52.678011+0800 [260:7647] [DYMTLInitPlatform] platform initialization successful

2018-03-28 17:46:52.822916+0800 xxx[260:7505] -> registered mono modules 0x102219ac0
-> applicationDidFinishLaunching()
Player data archive not found at `/var/containers/Bundle/Application/987D4C08-5610-43FA-BCAB-76D8C4492896/.app/Data/data.unity3d`, using local filesystem2018-03-28 17:46:53.286340+0800 [260:7505] [MC] Lazy loading NSBundle MobileCoreServices.framework
2018-03-28 17:46:53.288551+0800 xxx[260:7505] [MC] Loaded MobileCoreServices.framework
-> applicationDidBecomeActive()
Renderer: Apple A7 GPU
Vendor:   Apple Inc.
Version:  OpenGL ES 2.0 Apple A7 GPU - 111.47
GLES:     2
GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_draw_instanced GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_pvrtc_sRGB GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_filter_anisotropic GL_EXT_texture_rg GL_EXT_texture_storage GL_APPLE_clip_distance GL_APPLE_color_buffer_packed_float GL_APPLE_copy_texture_levels GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_sync GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_APPLE_texture_packed_float GL_IMG_r ead_format GL_IMG_texture_compression_pvrtc 
OPENGL LOG: Creating OpenGL ES 2.0 graphics device ; Context level  <OpenGL ES 2.0> ; Context handle 99622320
Initialize engine version: 5.6.4f1 (ac7086b8d112)
WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VR/BlitCopyFromTexArray' - Setting to default shader.

没办法先跟踪一下错误:

unity ios GL_OES_depth_texture BlitCopyFromTexArray undeclared gl_FragDepthEXT 错误 ARC配置

显然是
DisplayManager.mm 出问题了,百度以后就是arc配置问题

所以我果断 在 Build Phases>Compile Sources> DisplayManager.mm 加了编译配置
没想到一个就行了,完美解决

-fobjc-arc 启用ARC

unity ios GL_OES_depth_texture BlitCopyFromTexArray undeclared gl_FragDepthEXT 错误 ARC配置

编译打包 运行 完美通过
参考:

https://blog.csdn.net/IDOshi201109/article/details/73163010