DeviceMTL.h:29:9: 'QuartzCore/CAMetalLayer.h' file not found

cocos2dx4.0, 跑例子工程cpp-tests,编译无法通过,报以上错误。有人碰到过类似的问题吗?如何解决呢?

我是在mac上跑的