[Solved] validateRenderPassDescriptor:xxx: failed assertion XXX

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

Solution:
Xcode options Setting
GPU Frame Capture : OpenGL ES
Metal API Vaildation: Disabled

Read More: