新建Unity工程,没有任何编码,导入EasyAR的Unity SDK包,用EasyAR的相机替换场景中的默认相机,并设置好Key和bundle,然后导出iOS工程,进入Xcode编译链接通过,结果是:只要是源自Unity2017的iOS工程,编译链接后安装到iPad运行,一切正常,但源自Unity2018的iOS工程,安装到iPad运行就黑屏。Xcode的Debug窗口中显示的最后错误信息如下,可同样的Unity配置,包括OpenGL ES 2.0,还有Edit/Project Settings/Graphics中的所有设置都完全相同,却不会出现以下的错误信息:
2018-05-29 16:21:23.659447+0800 test[920:58113] [MC] Reading from public effective user settings.
-> applicationWillResignActive()
-> applicationDidBecomeActive()
WARNING: 0:4: extension 'GL_EXT_frag_depth' is not supported
ERROR: 0:43: Use of undeclared identifier 'gl_FragDepthEXT'
Note: Creation of internal variant of shader 'Hidden/Internal-MotionVectors' failed.
WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Setting to default shader.