'QuartzCore/CAMetalLayer.h' file not found

I've downloaded a couple of Metal example code projects, and when I build them, each gives a fatal error about not finding <QuartzCore/CAMetalLayer.h>


This makes no sense to me, since, in each project, the QuartzCore framework is being included, and I can see the contents of CAMetalLayer.h in XCode. What am I missing here?

Replies

Well, it turns out that the iOS simulator doesn't run Metal. The example runs OK on a device. How intuitive is that?