MTLCreateSystemDefaultDevice returning nil on iOS 13 Simulator

I am using Xcode 11 GM Seed (11A419c). When I run Metal code on iOS 13 simulator and try to access metal device created using MTLCreateSystemDefaultDevice(), it returns nil. How is Metal supposed to run on simulator without this device? Is there any setting in XCode to fix it? I have Macbook Pro retina 2012 model running Mac OS 10.14.6 if that matters.

Replies

Metal in the simulator requires macOS 10.15.