App crashes when resizing window with mapview in Xcode 12

My single view native macOS app crashes with lldb error.

It crashes with the message *** -[MTLDebugTexture removeUsedRenderTarget: slices:]: message sent to deallocated instance 0x-------.

The error thread reads EXC_BAD_INSTRUCTION (CODE=EXC_I386_INVOP,subcode=0x0)

my app crashed and was rejected during review. so I'm thinking of disabling the resize option
I have also tried with just the storyboard and auto layout without connecting it to code. still crashes
App crashes when resizing window with mapview in Xcode 12
 
 
Q