XCode 12 debugger failed assertion `Viewport Validation viewport.znear(-1) must be between 0.0f and 1.0f

XCode 12 is making debugging application impossible if you have Metal code such as this
Code Block
renderEncoder?.setViewport(MTLViewport(originX: 0, originY: 0, width: Double(destWidth), height: Double(destHeight), znear: -1, zfar: 1))
Code Block
[MTLDebugRenderCommandEncoder setViewport:]:2667: failed assertion `Viewport Validation

viewport.znear(-1) must be between 0.0f and 1.0f

This is not a problem when the app is not connected to debugger. How do I fix this?
I see this is a problem with iOS 14 beta, not XCode.
XCode 12 debugger failed assertion `Viewport Validation viewport.znear(-1) must be between 0.0f and 1.0f
 
 
Q