MTLCreateSystemDefaultDevice 在 iOS 13 模拟器上返回 nil

MTLCreateSystemDefaultDevice returning nil on iOS 13 Simulator

我正在使用 Xcode 11 GM 种子 (11A419c)。当我在 iOS 13 模拟器上 运行 Metal 代码并尝试访问使用 MTLCreateSystemDefaultDevice() 创建的 Metal 设备时,它 returns nil。如果没有此设备,Metal 应该如何在模拟器上 运行? XCode 中是否有任何设置可以修复它?我有 Macbook Pro retina 2012 型号 运行ning Mac OS 10.14.6 如果重要的话。

Metal 仅在 iOS 13 和 tvOS 13 模拟器中可用 运行 在 macOS Catalina (10.15) 或更高版本上。这记录在 Xcode 11 Release Notes.