Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QuartzCore/CAMetalLayer.h file not found

I try to check out the new Samples from the new Metal API for iOS. When i download the code an open it in the XCode 6 Beta I'm getting the following error message:

QuartzCore/CAMetalLayer.h file not found

Do i need to add some other files or am I missing something else? The Metal API should be available in OSX 10.9.3.

Is there any need to upgrade to Yosemite 10.10 Beta to run these examples?

like image 892
Brixto Avatar asked Jun 10 '14 15:06

Brixto


3 Answers

Reason behind this error is it only works in device having A7+ chip, simulator will not work for this.

like image 114
Dharmesh Vaghani Avatar answered Oct 14 '22 23:10

Dharmesh Vaghani


Try switch the device target to your iOS device (a7+), Metal is not available in iOS simulators.

like image 44
user1514296 Avatar answered Oct 14 '22 21:10

user1514296


CAMetalLayer is now supported in the iOS 13 / tvOS 13 simulators when running on macOS 10.15. (It is always present but won't be functional if you're running on macOS Mojave).

like image 2
russbishop Avatar answered Oct 14 '22 22:10

russbishop