Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 792
Deepak Sharma Avatar asked May 31 '26 23:05

Deepak Sharma


1 Answers

Metal is available in iOS 13 and tvOS 13 simulators only when running on macOS Catalina (10.15) or later. This is documented in the Xcode 11 Release Notes.

like image 131
warrenm Avatar answered Jun 02 '26 16:06

warrenm