MTLCreateSystemDefaultDevice returning nil on iOS 13 Simulator

霸气de小男生 提交于 2019-12-10 22:22:48

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/57908365/mtlcreatesystemdefaultdevice-returning-nil-on-ios-13-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!