unity打包xcode,在iOS11设备调试报错

来源:互联网 发布:租书软件 编辑:程序博客网 时间:2024/05/22 13:36

unity版本:5.4.5p5
Xcode版本:Xcode9
iOS版本:ios11
unity打包xcode,进行调试状态下报错:

validateRenderPassDescriptor:551: failed assertion `Texture at depthAttachment has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)'

线程中断,二进制的中断位置报错:UnityGfxDeviceWorker (14): signal SIGABRT。

这边在网上找到一个解决办法:
1 关掉xcode 里面的Metal API Validation
2 unity设置里用OpenGLES 代替 Metal
打开unity的buildSetting->other setting
图001